[pypy-svn] r54032 - pypy/dist/pypy/rlib/parsing/test

arigo at codespeak.net arigo at codespeak.net
Wed Apr 23 11:30:55 CEST 2008


Author: arigo
Date: Wed Apr 23 11:30:54 2008
New Revision: 54032

Modified:
   pypy/dist/pypy/rlib/parsing/test/test_deterministic.py
Log:
Fix test to run on 2.4 too.
(personally, I also think that this change makes the code quite
a bit more readable)


Modified: pypy/dist/pypy/rlib/parsing/test/test_deterministic.py
==============================================================================
--- pypy/dist/pypy/rlib/parsing/test/test_deterministic.py	(original)
+++ pypy/dist/pypy/rlib/parsing/test/test_deterministic.py	Wed Apr 23 11:30:54 2008
@@ -175,6 +175,6 @@
     nice = make_nice_charset_repr(string.printable)
     chunks = ['A-Z','a-z','0-9','\\t','\\x0b','\\n','\\r','\\x0c','\\\\','\\-']
     chunks += list('! #"%$\'&)(+*,/.;:=<?>@[]_^`{}|~')
-    assert all([chunk in nice for chunk in chunks])  # make sure every unit is in there, in some order
+    for chunk in chunks:
+        assert chunk in nice  # make sure every unit is in there, in some order
     assert len(''.join(chunks))==len(nice)  # make sure that's all that's in there
-    
\ No newline at end of file



More information about the Pypy-commit mailing list