Message201356
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' |
|
Date |
User |
Action |
Args |
2013-10-26 14:06:48 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, larry, dstufft |
2013-10-26 14:06:48 | ncoghlan | set | messageid: <1382796408.28.0.416274563488.issue19409@psf.upfronthosting.co.za> |
2013-10-26 14:06:48 | ncoghlan | link | issue19409 messages |
2013-10-26 14:06:48 | ncoghlan | create | |
|