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
Joshua
zodb
Commits
55167340
Commit
55167340
authored
Apr 14, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
cfec72a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
src/ZODB/tests/testConnection.py
src/ZODB/tests/testConnection.py
+1
-1
src/ZODB/tests/testConnectionSavepoint.py
src/ZODB/tests/testConnectionSavepoint.py
+3
-2
src/ZODB/tests/testRecover.py
src/ZODB/tests/testRecover.py
+1
-1
src/ZODB/tests/testSerialize.py
src/ZODB/tests/testSerialize.py
+1
-1
No files found.
src/ZODB/tests/testConnection.py
View file @
55167340
...
@@ -246,7 +246,7 @@ class UserMethodTests(unittest.TestCase):
...
@@ -246,7 +246,7 @@ class UserMethodTests(unittest.TestCase):
object will be returned. The cache doesn't keep unreferenced
object will be returned. The cache doesn't keep unreferenced
ghosts alive, although on some implementations like PyPy we
ghosts alive, although on some implementations like PyPy we
need to run a garbage collection to be sure they go away. (The
need to run a garbage collection to be sure they go away. (The
next object returned my still have the same id, because Python
next object returned m
a
y still have the same id, because Python
may re-use the same memory.)
may re-use the same memory.)
>>> del obj, obj2
>>> del obj, obj2
...
...
src/ZODB/tests/testConnectionSavepoint.py
View file @
55167340
...
@@ -131,8 +131,9 @@ number of objects. Make sure the cache shrinks now instead.
...
@@ -131,8 +131,9 @@ number of objects. Make sure the cache shrinks now instead.
>>> dummy = transaction.savepoint()
>>> dummy = transaction.savepoint()
Jython needs a GC, and needs to actually access the map to be sure the size
Jython needs a GC, and needs to actually access the cache data to be
is updated:
sure the size is updated (it uses "eventually consistent" implementations for
its weak dictionaries):
>>> _ = gc.collect()
>>> _ = gc.collect()
>>> _ = getattr(cn._cache, 'data', {}).values()
>>> _ = getattr(cn._cache, 'data', {}).values()
...
...
src/ZODB/tests/testRecover.py
View file @
55167340
...
@@ -74,7 +74,7 @@ class RecoverTest(ZODB.tests.util.TestCase):
...
@@ -74,7 +74,7 @@ class RecoverTest(ZODB.tests.util.TestCase):
# Note that we open the file as r+, not a+. Seeking a file
# Note that we open the file as r+, not a+. Seeking a file
# open in append mode is effectively a no-op *depending on
# open in append mode is effectively a no-op *depending on
# platform*, as the write may simply append to the file. An
# platform*, as the write may simply append to the file. An
# earlier version of this code opened the file i
s
a+ mode,
# earlier version of this code opened the file i
n
a+ mode,
# meaning on some platforms it was only writing to the end of the
# meaning on some platforms it was only writing to the end of the
# file, and so the test cases were always finding that bad data.
# file, and so the test cases were always finding that bad data.
# For compatibility with that, we do one write outside the loop
# For compatibility with that, we do one write outside the loop
...
...
src/ZODB/tests/testSerialize.py
View file @
55167340
...
@@ -140,7 +140,7 @@ class SerializerFunctestCase(unittest.TestCase):
...
@@ -140,7 +140,7 @@ class SerializerFunctestCase(unittest.TestCase):
# so force it ourselves
# so force it ourselves
environ
=
os
.
environ
.
copy
()
environ
=
os
.
environ
.
copy
()
if
IS_JYTHON
:
if
IS_JYTHON
:
# Jython 2.7rc2 has a bug; if it
'
s Lib directory is
# Jython 2.7rc2 has a bug; if its Lib directory is
# specifically put on the PYTHONPATH, then it doesn't add
# specifically put on the PYTHONPATH, then it doesn't add
# it itself, which means it fails to 'import site' because
# it itself, which means it fails to 'import site' because
# it can't import '_jythonlib' and the whole process fails
# it can't import '_jythonlib' and the whole process fails
...
...
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