[pypy-svn] r41251 - pypy/dist/pypy/lib/app_test

hpk at codespeak.net hpk at codespeak.net
Sat Mar 24 19:16:58 CET 2007


Author: hpk
Date: Sat Mar 24 19:16:58 2007
New Revision: 41251

Removed:
   pypy/dist/pypy/lib/app_test/test_exceptions_extra.py
Modified:
   pypy/dist/pypy/lib/app_test/test_exception_extra.py
Log:
merge two files with one exception test each


Modified: pypy/dist/pypy/lib/app_test/test_exception_extra.py
==============================================================================
--- pypy/dist/pypy/lib/app_test/test_exception_extra.py	(original)
+++ pypy/dist/pypy/lib/app_test/test_exception_extra.py	Sat Mar 24 19:16:58 2007
@@ -1,7 +1,6 @@
 
-from pypy.lib import _exceptions as ex 
-
-def test_environmenterror_repr():
+def app_test_environmenterror_repr():
+    import exceptions as ex 
     e = ex.EnvironmentError("hello")
     assert str(e) == "hello"
     e = ex.EnvironmentError(1, "hello")
@@ -9,3 +8,6 @@
     e = ex.EnvironmentError(1, "hello", "world")
     assert str(e) == "[Errno 1] hello: world"
 
+def app_test_import():
+    import exceptions
+    assert exceptions.SyntaxError is SyntaxError 



More information about the Pypy-commit mailing list