[pypy-svn] r56203 - pypy/dist/pypy/module/sys/test

arigo at codespeak.net arigo at codespeak.net
Tue Jul 1 18:07:18 CEST 2008


Author: arigo
Date: Tue Jul  1 18:07:18 2008
New Revision: 56203

Modified:
   pypy/dist/pypy/module/sys/test/test_sysmodule.py
Log:
Fix test.  Now sys.setcheckinterval() clamps the value to
a sane range, and values <= 0 don't make sense.


Modified: pypy/dist/pypy/module/sys/test/test_sysmodule.py
==============================================================================
--- pypy/dist/pypy/module/sys/test/test_sysmodule.py	(original)
+++ pypy/dist/pypy/module/sys/test/test_sysmodule.py	Tue Jul  1 18:07:18 2008
@@ -263,7 +263,7 @@
     def test_setcheckinterval(self):
         raises(TypeError, sys.setcheckinterval)
         orig = sys.getcheckinterval()
-        for n in 0, 100, 120, orig: # orig last to restore starting state
+        for n in 1, 100, 120, orig: # orig last to restore starting state
             sys.setcheckinterval(n)
             assert sys.getcheckinterval() == n
 



More information about the Pypy-commit mailing list