Author: marky1991
Branch: py3.3
Changeset: r81710:ac2adddb9bb1
Date: 2016-01-07 23:04 -0500
http://bitbucket.org/pypy/pypy/changeset/ac2adddb9bb1/
Log: Importlib raises a TypeError when you try to set __package__ to a
string nowadays. Updating the test.
diff --git a/pypy/module/imp/test/test_import.py
b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -499,7 +499,7 @@
# Check relative fails when __package__ set to a non-string
ns = dict(__package__=object())
check_absolute()
- raises(ValueError, check_relative)
+ raises(TypeError, check_relative)
def test_import_function(self):
# More tests for __import__
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit