[pypy-svn] rev 633 - pypy/trunk/src/pypy

alex at codespeak.net alex at codespeak.net
Wed May 28 18:06:26 CEST 2003


Author: alex
Date: Wed May 28 18:06:26 2003
New Revision: 633

Modified:
   pypy/trunk/src/pypy/testwice.py
Log:
fix usual index/find confusion (!)



Modified: pypy/trunk/src/pypy/testwice.py
==============================================================================
--- pypy/trunk/src/pypy/testwice.py	(original)
+++ pypy/trunk/src/pypy/testwice.py	Wed May 28 18:06:26 2003
@@ -18,7 +18,7 @@
 
 def is_flexible(dirname, modname):
     filecont = open('%s/%s.py'%(dirname,modname)).read()
-    return filecont.index('testsupport.objspace') >= 0
+    return filecont.find('testsupport.objspace') >= 0
 
 def find_tests(root, inc_names=[], exc_names=[]):
     testmods = []


More information about the Pypy-commit mailing list