[pypy-svn] r48102 - pypy/dist/pypy/lang/smalltalk/test

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Oct 27 12:10:03 CEST 2007


Author: cfbolz
Date: Sat Oct 27 12:10:03 2007
New Revision: 48102

Modified:
   pypy/dist/pypy/lang/smalltalk/test/test_primitives.py
Log:
better test for the milliseconds primitive


Modified: pypy/dist/pypy/lang/smalltalk/test/test_primitives.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/test/test_primitives.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/test/test_primitives.py	Sat Oct 27 12:10:03 2007
@@ -364,13 +364,12 @@
     assert equals_ttp(1.5,0,1.5)
     assert equals_ttp(1.5,-1,0.75)
     
-def test_primtiive_milliseconds_clock():
-    py.test.skip("Crashes from time to time. who cares about it?")
+def test_primitive_milliseconds_clock():
     import time
     start = prim(primitives.MILLISECOND_CLOCK, [0]).value
-    time.sleep(0.010)
+    time.sleep(0.3)
     stop = prim(primitives.MILLISECOND_CLOCK, [0]).value
-    assert start + 10 <= stop
+    assert start + 250 <= stop
 
 def test_inc_gc():
     # Should not fail :-)



More information about the Pypy-commit mailing list