Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r48469:d40090f37f98
Date: 2011-10-26 09:37 +0200
http://bitbucket.org/pypy/pypy/changeset/d40090f37f98/

Log:    fix tests and translation. decrease the wait time

diff --git a/pypy/module/rctime/interp_time.py 
b/pypy/module/rctime/interp_time.py
--- a/pypy/module/rctime/interp_time.py
+++ b/pypy/module/rctime/interp_time.py
@@ -246,8 +246,8 @@
     @unwrap_spec(secs=float)
     def sleep(space, secs):
         if secs < 0:
-            raise space.OperationError(space.w_IOError,
-                                       space.wrap("Invalid argument: negative 
time in sleep"))
+            raise OperationError(space.w_IOError,
+                                 space.wrap("Invalid argument: negative time 
in sleep"))
         pytime.sleep(secs)
 else:
     from pypy.rlib import rwin32
@@ -269,8 +269,8 @@
     @unwrap_spec(secs=float)
     def sleep(space, secs):
         if secs < 0:
-            raise space.OperationError(space.w_IOError,
-                                       space.wrap("Invalid argument: negative 
time in sleep"))
+            raise OperationError(space.w_IOError,
+                                 space.wrap("Invalid argument: negative time 
in sleep"))
         # as decreed by Guido, only the main thread can be
         # interrupted.
         main_thread = space.fromcache(State).main_thread
diff --git a/pypy/module/rctime/test/test_rctime.py 
b/pypy/module/rctime/test/test_rctime.py
--- a/pypy/module/rctime/test/test_rctime.py
+++ b/pypy/module/rctime/test/test_rctime.py
@@ -20,7 +20,7 @@
         import sys
         import os
         raises(TypeError, rctime.sleep, "foo")
-        rctime.sleep(1.2345)
+        rctime.sleep(0.12345)
         raises(IOError, rctime.sleep, -1.0)
 
     def test_clock(self):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to