Commit 4068a366 authored by Yusei Tahara's avatar Yusei Tahara

ERP5Type/tests/testPerformance.py: Fix test_getCreationDate.

parent 4120b2f3
...@@ -380,8 +380,8 @@ class TestPerformance(TestPerformanceMixin): ...@@ -380,8 +380,8 @@ class TestPerformance(TestPerformanceMixin):
# First time it may be slow. # First time it may be slow.
foo.getCreationDate() foo.getCreationDate()
# Second time it must not be slow. # Second time it must not be slow.
start = time.time() start = time()
foo.getCreationDate() foo.getCreationDate()
end = time.time() end = time()
self.assertTrue(end-start < 0.01) self.assertTrue(end-start < 0.01)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment