[pypy-svn] r8950 - pypy/dist/pypy/module/test

ac at codespeak.net ac at codespeak.net
Mon Feb 7 13:08:36 CET 2005


Author: ac
Date: Mon Feb  7 13:08:36 2005
New Revision: 8950

Modified:
   pypy/dist/pypy/module/test/test_builtin.py
Log:
Test for leading whitespace in eval.


Modified: pypy/dist/pypy/module/test/test_builtin.py
==============================================================================
--- pypy/dist/pypy/module/test/test_builtin.py	(original)
+++ pypy/dist/pypy/module/test/test_builtin.py	Mon Feb  7 13:08:36 2005
@@ -293,6 +293,7 @@
 
     def test_eval(self):
         assert eval("1+2") == 3
+        assert eval(" \t1+2\n") == 3
 
     def test_compile(self):
         co = compile('1+2', '?', 'eval')



More information about the Pypy-commit mailing list