Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58404:1da7c415dfb4
Date: 2012-10-24 13:56 -0700
http://bitbucket.org/pypy/pypy/changeset/1da7c415dfb4/
Log: kill refs to the exceptions module
diff --git a/lib_pypy/pypy_test/test_exception_extra.py
b/lib_pypy/pypy_test/test_exception_extra.py
--- a/lib_pypy/pypy_test/test_exception_extra.py
+++ b/lib_pypy/pypy_test/test_exception_extra.py
@@ -1,16 +1,11 @@
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit