Nick Coghlan added the comment:
I'm seeing the same symptom locally.
If you use -m to execute things, the problem isn't noticeable because runpy
imports importlib.machinery. It looks like test.regrtest imports it as well:
$ ./python -m test test_pkgutil
[1/1] test_pkgutil
1 test OK.
$ ./python Lib/test/regrtest.py test_pkgutil
[1/1] test_pkgutil
1 test OK.
$ ./python Lib/test/test_pkgutil.py
Traceback (most recent call last):
File "Lib/test/test_pkgutil.py", line 5, in <module>
import pkgutil
File "/home/ncoghlan/devel/py3k/Lib/pkgutil.py", line 161, in <module>
importlib.machinery.FileFinder, _iter_file_finder_modules)
AttributeError: 'module' object has no attribute 'machinery'
----------
nosy: +brett.cannon, ncoghlan
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19409>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com