Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests on Python 2 #43

Merged
merged 1 commit into from
Nov 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changes
4.6 (unreleased)
----------------

- Nothing changed yet.
- Fix tests on Python 2 following changes in ZODB 5.5.0.


4.5 (2018-10-10)
Expand Down
12 changes: 6 additions & 6 deletions docs/api/persistent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ managers and database connections to work with.

.. doctest::

>>> import ZODB.tests.util
>>> db = ZODB.tests.util.DB()
>>> import ZODB.MappingStorage
>>> db = ZODB.MappingStorage.DB()
>>> import transaction
>>> t1 = transaction.TransactionManager()
>>> c1 = db.open(transaction_manager=t1)
Expand Down Expand Up @@ -126,8 +126,8 @@ Subscription to Events in Persistent Registries

.. doctest::

>>> import ZODB.tests.util
>>> db = ZODB.tests.util.DB()
>>> import ZODB.MappingStorage
>>> db = ZODB.MappingStorage.DB()
>>> import transaction
>>> t1 = transaction.TransactionManager()
>>> c1 = db.open(transaction_manager=t1)
Expand Down Expand Up @@ -183,8 +183,8 @@ We want to make sure that we see updates corrextly.
>>> len(base._v_subregistries)
0

>>> import ZODB.tests.util
>>> db = ZODB.tests.util.DB()
>>> import ZODB.MappingStorage
>>> db = ZODB.MappingStorage.DB()
>>> tm1 = transaction.TransactionManager()
>>> c1 = db.open(transaction_manager=tm1)
>>> from zope.component.persistentregistry import PersistentAdapterRegistry
Expand Down