Re: [pypy-dev] src/pypy/module/test/test_sysmodule.py
In a message of Tue, 06 Jul 2004 09:52:50 +0200, Christian Tismer writes:
Laura Creighton wrote:
def test_sys_in_modules(self): import sys modules = sys.modules self.failUnless('sys' in modules, "An entry for sys " "is not in sys.modules.")
I see the problem, although it's perfectly fine Python.
...
My poor program converts them to:
def test_sys_in_modules(self): import sys modules = sys.modules assert 'sys' in modules, "An entry for sys " "is not in sys.modules."
I propose we consider src/pypy/module/test/test_sysmodule.py broken, an d we fix that file, rather than make my program wrap them in parentheses.
Any objections?
Maybe the test is inconvenient to parse, but by no means broken. The simplest fix would probably be to emit a "\" continuation at the line end, and everything is fine.
ciao - chris
Astonishing the legal python usage I had never known about, and, as far as I know, I have never seen. I've always typed the '+' sign in the above .... :-) Ok, I think I will be enclosing them in parens rather than pasting on backslashes, but this can be done.... Laura, bemused
participants (1)
-
Laura Creighton