This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients brett.cannon, dstufft, larry, ncoghlan
Date 2013-10-26.14:06:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382796408.28.0.416274563488.issue19409@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2013-10-26 14:06:48ncoghlansetrecipients: + ncoghlan, brett.cannon, larry, dstufft
2013-10-26 14:06:48ncoghlansetmessageid: <1382796408.28.0.416274563488.issue19409@psf.upfronthosting.co.za>
2013-10-26 14:06:48ncoghlanlinkissue19409 messages
2013-10-26 14:06:48ncoghlancreate