summaryrefslogtreecommitdiff
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-02-21 01:41:36 +0000
committerRaymond Hettinger <python@rcn.com>2003-02-21 01:41:36 +0000
commit785d0a37e510ab4c76dc82e4605ad9ea0231d0a1 (patch)
treeb1cd041ed03fdf759c187a176eea87032aa02a51 /Lib/test/test_random.py
parentc355f0cae932bd1548ff5797af9846fcb32aa6f7 (diff)
downloadcpython-git-785d0a37e510ab4c76dc82e4605ad9ea0231d0a1.tar.gz
SF bug #690083: test_random fails sometimes
time.sleep(1) sometimes delays for fractionally less than a second resulting in too short of an interval for C's time.time() function to create a distinct seed.
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index 9a1636a283..50bf00b72c 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -19,7 +19,7 @@ class TestBasicOps(unittest.TestCase):
def test_autoseed(self):
self.gen.seed()
state1 = self.gen.getstate()
- time.sleep(1)
+ time.sleep(1.1)
self.gen.seed() # diffent seeds at different times
state2 = self.gen.getstate()
self.assertNotEqual(state1, state2)