Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61883:cff8ed68eb95
Date: 2013-02-28 21:19 -0800
http://bitbucket.org/pypy/pypy/changeset/cff8ed68eb95/

Log:    imp.load_package is undocumented, deprecated in 3.3 and doesn't seem
        widely used anyway

diff --git a/lib-python/3.2/test/test_imp.py b/lib-python/3.2/test/test_imp.py
--- a/lib-python/3.2/test/test_imp.py
+++ b/lib-python/3.2/test/test_imp.py
@@ -161,8 +161,9 @@
                 os.mkdir(test_package_name)
             with open(init_file_name, 'w') as file:
                 file.write('b = 2\n')
-            package = imp.load_package(test_package_name, test_package_name)
-            self.assertEqual(package.b, 2)
+            if support.check_impl_detail(cpython=True):
+                package = imp.load_package(test_package_name, 
test_package_name)
+                self.assertEqual(package.b, 2)
         finally:
             del sys.path[0]
             for ext in ('.py', '.pyc', '.pyo'):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to