Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
61e37be5
Commit
61e37be5
authored
Jan 31, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change TOC tests to deal with speed difference in fauxtime.
parent
0f199821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
lib/python/Products/Transience/tests/testTransientObjectContainer.py
...Products/Transience/tests/testTransientObjectContainer.py
+6
-9
No files found.
lib/python/Products/Transience/tests/testTransientObjectContainer.py
View file @
61e37be5
...
...
@@ -222,10 +222,9 @@ class TestTransientObjectContainer(TestBase):
r
=
range
(
10
,
1010
)
for
x
in
r
:
self
.
t
[
x
]
=
1
assert
lsubtract
(
self
.
t
.
keys
(),
r
)
==
[]
for
x
in
r
:
del
self
.
t
[
x
]
assert
lsubtract
(
self
.
t
.
keys
(),
[])
==
[],
self
.
t
.
keys
()
assert
list
(
self
.
t
.
keys
())
==
r
,
(
self
.
t
.
keys
(),
r
)
map
(
self
.
t
.
__delitem__
,
r
)
assert
list
(
self
.
t
.
keys
())
==
[],
self
.
t
.
keys
()
def
testPathologicalLeftBranching
(
self
):
r
=
range
(
10
,
1010
)
...
...
@@ -233,10 +232,9 @@ class TestTransientObjectContainer(TestBase):
revr
.
reverse
()
for
x
in
revr
:
self
.
t
[
x
]
=
1
assert
lsubtract
(
self
.
t
.
keys
(),
r
)
==
[]
for
x
in
revr
:
del
self
.
t
[
x
]
assert
lsubtract
(
self
.
t
.
keys
(),[])
==
[],
self
.
t
.
keys
()
assert
list
(
self
.
t
.
keys
())
==
r
,
(
self
.
t
.
keys
(),
r
)
map
(
self
.
t
.
__delitem__
,
revr
)
assert
list
(
self
.
t
.
keys
())
==
[],
self
.
t
.
keys
()
def
donttestSuccessorChildParentRewriteExerciseCase
(
self
):
add_order
=
[
...
...
@@ -285,7 +283,6 @@ class TestTransientObjectContainer(TestBase):
if
self
.
t
.
has_key
(
x
):
assert
1
==
2
,
"failed to delete %s"
%
x
def
testChangingTimeoutWorks
(
self
):
# XXX This test takes nearly 40 seconds on my machine!
# 1 minute
for
x
in
range
(
10
,
110
):
self
.
t
[
x
]
=
x
...
...
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