Kaydet (Commit) de7f5028 authored tarafından Neal Norwitz's avatar Neal Norwitz

Try to narrow window of failure on slow/busy boxes (ppc64 buildbot)

üst fe7d0c3b
......@@ -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():
......
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