[pypy-svn] r70067 - pypy/trunk/pypy/interpreter/test

arigo at codespeak.net arigo at codespeak.net
Fri Dec 11 12:17:00 CET 2009


Author: arigo
Date: Fri Dec 11 12:16:59 2009
New Revision: 70067

Modified:
   pypy/trunk/pypy/interpreter/test/test_module.py
Log:
Replace continuation lines ending with '\' with parenthesis.
Seems that py.test is confused by '\' when repeating the
evaluation.


Modified: pypy/trunk/pypy/interpreter/test/test_module.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_module.py	(original)
+++ pypy/trunk/pypy/interpreter/test/test_module.py	Fri Dec 11 12:16:59 2009
@@ -56,10 +56,10 @@
         
         import _pypy_interact # known to be in pypy/lib
         r = repr(_pypy_interact)
-        assert r.startswith("<module '_pypy_interact' from ") and \
-               ('pypy/lib/_pypy_interact.py' in r or
-                'pypy\\lib\\_pypy_interact.py' in r.lower()) and \
-               r.endswith('>')
+        assert (r.startswith("<module '_pypy_interact' from ") and
+                ('pypy/lib/_pypy_interact.py' in r or
+                 'pypy\\lib\\_pypy_interact.py' in r.lower()) and
+                r.endswith('>'))
         nofile = type(_pypy_interact)('nofile', 'foo')
         assert repr(nofile) == "<module 'nofile' from ?>"
 



More information about the Pypy-commit mailing list