Author: Ronan Lamy <[email protected]>
Branch: py3k
Changeset: r87422:ea9cd722574d
Date: 2016-09-27 20:32 +0100
http://bitbucket.org/pypy/pypy/changeset/ea9cd722574d/

Log:    Fix NullImporter test and revert unnecessary stdlib change

diff --git a/lib-python/3/imp.py b/lib-python/3/imp.py
--- a/lib-python/3/imp.py
+++ b/lib-python/3/imp.py
@@ -73,7 +73,7 @@
         elif os.path.isdir(path):
             raise ImportError('existing directory', path=path)
 
-    def find_module(self, fullname, path=None):
+    def find_module(self, fullname):
         """Always returns None."""
         return None
 
diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -169,7 +169,7 @@
     def test_nullimporter(self):
         import os, imp
         importer = imp.NullImporter("path")
-        assert importer.find_module(1, [2, 3, 4]) is None
+        assert importer.find_module(1) is None
         raises(ImportError, imp.NullImporter, os.getcwd())
 
     def test_path_importer_cache(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to