Skip to content

Commit

Permalink
Merge pull request #43 from cjwatson/fix-py2-tests
Browse files Browse the repository at this point in the history
Fix tests on Python 2
  • Loading branch information
cjwatson committed Nov 12, 2019
2 parents fba4ae4 + 8f8a645 commit a223516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit a223516

Please sign in to comment.