diff options
author | Raymond Hettinger <python@rcn.com> | 2003-02-21 01:41:36 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-02-21 01:41:36 (GMT) |
commit | 785d0a37e510ab4c76dc82e4605ad9ea0231d0a1 (patch) | |
tree | b1cd041ed03fdf759c187a176eea87032aa02a51 | |
parent | c355f0cae932bd1548ff5797af9846fcb32aa6f7 (diff) | |
download | cpython-785d0a37e510ab4c76dc82e4605ad9ea0231d0a1.zip cpython-785d0a37e510ab4c76dc82e4605ad9ea0231d0a1.tar.gz cpython-785d0a37e510ab4c76dc82e4605ad9ea0231d0a1.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index 9a1636a..50bf00b 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) |