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
a8ed7dce
Commit
a8ed7dce
authored
Sep 26, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed two unit tests that failed on fast Windows machines
parent
273d4d70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/OFS/tests/testHistory.py
src/OFS/tests/testHistory.py
+3
-1
src/Products/ZCatalog/tests/test_plan.py
src/Products/ZCatalog/tests/test_plan.py
+1
-0
No files found.
doc/CHANGES.rst
View file @
a8ed7dce
...
...
@@ -11,6 +11,8 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- Fixed two unit tests that failed on fast Windows machines.
- Fixed ``testZODBCompat`` tests in ZopeTestCase to match modern ZODB
semantics.
...
...
src/OFS/tests/testHistory.py
View file @
a8ed7dce
...
...
@@ -4,11 +4,11 @@ Zope2.startup()
import
os
import
shutil
import
time
import
transaction
import
tempfile
import
ZODB
from
OFS.Application
import
Application
from
OFS.History
import
Historical
from
OFS.SimpleItem
import
SimpleItem
...
...
@@ -42,10 +42,12 @@ class HistoryTests(unittest.TestCase):
t
.
description
=
None
t
.
note
(
'Change 1'
)
t
.
commit
()
time
.
sleep
(
0.02
)
# wait at least one Windows clock tick
hi
.
title
=
'Second title'
t
=
transaction
.
get
()
t
.
note
(
'Change 2'
)
t
.
commit
()
time
.
sleep
(
0.02
)
# wait at least one Windows clock tick
hi
.
title
=
'Third title'
t
=
transaction
.
get
()
t
.
note
(
'Change 3'
)
...
...
src/Products/ZCatalog/tests/test_plan.py
View file @
a8ed7dce
...
...
@@ -255,6 +255,7 @@ class TestCatalogPlan(cleanup.CleanUp, unittest.TestCase):
plan
.
stop_split
(
'index1'
)
plan
.
start_split
(
'sort_on'
)
plan
.
stop_split
(
'sort_on'
)
time
.
sleep
(
0.02
)
# wait at least one Windows clock tick
plan
.
stop
()
self
.
assert_
(
plan
.
duration
>
0
)
...
...
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