Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
8faf6aa4
Commit
8faf6aa4
authored
Oct 01, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed stupid test bug. It's a but disturbing that the affected test
usually passed. :(
parent
8317fe75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+2
-1
No files found.
src/ZODB/tests/testFileStorage.py
View file @
8faf6aa4
...
@@ -219,6 +219,7 @@ class FileStorageTests(
...
@@ -219,6 +219,7 @@ class FileStorageTests(
from
ZODB.utils
import
U64
,
p64
from
ZODB.utils
import
U64
,
p64
from
ZODB.FileStorage.format
import
CorruptedError
from
ZODB.FileStorage.format
import
CorruptedError
from
ZODB.serialize
import
referencesf
db
=
DB
(
self
.
_storage
)
db
=
DB
(
self
.
_storage
)
conn
=
db
.
open
()
conn
=
db
.
open
()
...
@@ -251,7 +252,7 @@ class FileStorageTests(
...
@@ -251,7 +252,7 @@ class FileStorageTests(
# Try to pack. This used to yield
# Try to pack. This used to yield
# NameError: global name 's' is not defined
# NameError: global name 's' is not defined
try
:
try
:
self
.
_storage
.
pack
(
time
.
time
(),
None
)
self
.
_storage
.
pack
(
time
.
time
(),
referencesf
)
except
CorruptedError
,
detail
:
except
CorruptedError
,
detail
:
self
.
assert_
(
"redundant transaction length does not match "
self
.
assert_
(
"redundant transaction length does not match "
"initial transaction length"
in
str
(
detail
))
"initial transaction length"
in
str
(
detail
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment