summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-15 05:55:49 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-15 05:55:49 (GMT)
commitde7f50287999ab58b6fb1886646fa19c9cfe66f8 (patch)
treefaacfbe8ff6b83b0e8c70cb16103978cafb5a45f
parentfe7d0c3bc6352bbabd4b458bf736cd18e9082a27 (diff)
downloadcpython-de7f50287999ab58b6fb1886646fa19c9cfe66f8.zip
cpython-de7f50287999ab58b6fb1886646fa19c9cfe66f8.tar.gz
cpython-de7f50287999ab58b6fb1886646fa19c9cfe66f8.tar.bz2
Try to narrow window of failure on slow/busy boxes (ppc64 buildbot)
-rw-r--r--Lib/test/test_time.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 768e7a0..94bbcca 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -193,13 +193,17 @@ class TimeTestCase(unittest.TestCase):
time.ctime(None)
def test_gmtime_without_arg(self):
- t0 = time.mktime(time.gmtime())
- t1 = time.mktime(time.gmtime(None))
+ gt0 = time.gmtime()
+ gt1 = time.gmtime(None)
+ t0 = time.mktime(gt0)
+ t1 = time.mktime(gt1)
self.assert_(0 <= (t1-t0) < 0.2)
def test_localtime_without_arg(self):
- t0 = time.mktime(time.localtime())
- t1 = time.mktime(time.localtime(None))
+ lt0 = time.localtime()
+ lt1 = time.localtime(None)
+ t0 = time.mktime(lt0)
+ t1 = time.mktime(lt1)
self.assert_(0 <= (t1-t0) < 0.2)
def test_main():