[pypy-commit] pypy default: fix a corner case in a test

fijal noreply at buildbot.pypy.org
Fri Oct 2 15:39:54 CEST 2015


Author: fijal
Branch: 
Changeset: r79933:b1465cb3c7e1
Date: 2015-10-02 15:32 +0200
http://bitbucket.org/pypy/pypy/changeset/b1465cb3c7e1/

Log:	fix a corner case in a test

diff --git a/rpython/rtyper/module/test/test_ll_time.py b/rpython/rtyper/module/test/test_ll_time.py
--- a/rpython/rtyper/module/test/test_ll_time.py
+++ b/rpython/rtyper/module/test/test_ll_time.py
@@ -40,11 +40,11 @@
         # we can only subtract two numbers returned by the same function.
         # Moreover they might have different precisions, but it should
         # be at least 0.01 seconds, hence the "sleeps".
-        assert 0.0199 <= t2-t0 <= 9.0
-        assert 0.0199 <= t3-t1 <= t4-t0 <= 9.0
-        assert 0.0199 <= t4-t2 <= t5-t1 <= t6-t0 <= 9.0
-        assert 0.0199 <= t5-t3 <= t6-t2 <= 9.0
-        assert 0.0199 <= t6-t4 <= 9.0
+        assert 0.0099 <= t2-t0 <= 9.0
+        assert 0.0099 <= t3-t1 <= t4-t0 <= 9.0
+        assert 0.0099 <= t4-t2 <= t5-t1 <= t6-t0 <= 9.0
+        assert 0.0099 <= t5-t3 <= t6-t2 <= 9.0
+        assert 0.0099 <= t6-t4 <= 9.0
 
     def test_time_sleep(self):
         def does_nothing():


More information about the pypy-commit mailing list