[pypy-commit] pypy default: make the test for time.sleep with negative values fail (Issue922)

timo_jbo noreply at buildbot.pypy.org
Wed Oct 26 03:03:20 CEST 2011


Author: Timo Paulssen <timonator at perpetuum-immobile.de>
Branch: 
Changeset: r48466:1ee24bbb619b
Date: 2011-10-26 02:57 +0200
http://bitbucket.org/pypy/pypy/changeset/1ee24bbb619b/

Log:	make the test for time.sleep with negative values fail (Issue922)

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
@@ -21,7 +21,8 @@
         import os
         raises(TypeError, rctime.sleep, "foo")
         rctime.sleep(1.2345)
-        
+        raises(IOError, rctime.sleep, -1.0)
+
     def test_clock(self):
         import time as rctime
         rctime.clock()


More information about the pypy-commit mailing list