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
c0dc9ef5
Commit
c0dc9ef5
authored
Mar 03, 2014
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reproducing issue does not depend on Acquisition :-)
parent
8e56ef6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
setup.py
setup.py
+2
-2
src/ZODB/tests/testZODB.py
src/ZODB/tests/testZODB.py
+3
-12
No files found.
setup.py
View file @
c0dc9ef5
...
...
@@ -197,8 +197,8 @@ setup(name="ZODB3",
classifiers
=
filter
(
None
,
classifiers
.
split
(
"
\
n
"
)),
long_description
=
long_description
,
test_suite
=
"__main__.alltests"
,
# to support "setup.py test"
tests_require
=
[
'zope.testing'
,
'Acquisition'
,
manuel_version
],
extras_require
=
dict
(
test
=
[
'zope.testing'
,
'Acquisition'
,
manuel_version
]),
tests_require
=
[
'zope.testing'
,
manuel_version
],
extras_require
=
dict
(
test
=
[
'zope.testing'
,
manuel_version
]),
install_requires
=
[
transaction_version
,
'zc.lockfile'
,
...
...
src/ZODB/tests/testZODB.py
View file @
c0dc9ef5
...
...
@@ -17,7 +17,6 @@ from persistent.mapping import PersistentMapping
from
ZODB.POSException
import
ReadConflictError
from
ZODB.POSException
import
TransactionFailedError
import
Acquisition
from
BTrees.OOBTree
import
OOBTree
import
transaction
import
unittest
...
...
@@ -31,14 +30,6 @@ class P(Persistent):
pass
class
AcqImplicitP
(
P
,
Acquisition
.
Implicit
):
pass
class
AcqImplicitOOBTree
(
OOBTree
,
Acquisition
.
Implicit
):
pass
class
ZODBTests
(
ZODB
.
tests
.
util
.
TestCase
):
def
setUp
(
self
):
...
...
@@ -349,12 +340,12 @@ class ZODBTests(ZODB.tests.util.TestCase):
try
:
transaction
.
begin
()
root
=
cn
.
root
()
added_before_savepoint
=
AcqImplicit
P
()
added_before_savepoint
=
P
()
root
[
'added_before_savepoint'
]
=
added_before_savepoint
sp
=
transaction
.
savepoint
()
added_before_savepoint
.
btree
=
new_btree
=
AcqImplicit
OOBTree
()
added_before_savepoint
.
btree
=
new_btree
=
OOBTree
()
cn
.
add
(
new_btree
)
new_btree
[
'change_to_trigger_read_current'
]
=
AcqImplicit
P
()
new_btree
[
'change_to_trigger_read_current'
]
=
P
()
sp
.
rollback
()
transaction
.
commit
()
self
.
assertTrue
(
'added_before_savepoint'
in
root
)
...
...
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