Commits

Philip Jenvey committed 1da7c41

kill refs to the exceptions module

  • Participants
  • Parent commits c1aa74c
  • Branches py3k

Comments (0)

Files changed (1)

File lib_pypy/pypy_test/test_exception_extra.py

 def app_test_environmenterror_repr():
-    import exceptions as ex 
-    e = ex.EnvironmentError("hello")
+    e = EnvironmentError("hello")
     assert str(e) == "hello"
-    e = ex.EnvironmentError(1, "hello")
+    e = EnvironmentError(1, "hello")
     assert str(e) == "[Errno 1] hello"
-    e = ex.EnvironmentError(1, "hello", "world")
+    e = EnvironmentError(1, "hello", "world")
     assert str(e) == "[Errno 1] hello: 'world'"
 
-def app_test_import():
-    import exceptions
-    assert exceptions.SyntaxError is SyntaxError 
-
 def app_test_baseexception():
     assert issubclass(Exception, BaseException)