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 chris.jerdonek
Recipients chris.jerdonek, michael.foord, r.david.murray, rbcollins, slmnhq
Date 2010-04-08.08:36:51
SpamBayes Score 1.2429885e-05
Marked as misclassified No
Message-id <1270715813.1.0.133672938365.issue7559@psf.upfronthosting.co.za>
In-reply-to
Content
FYI, there seems to be a bug in the code cited above:

http://twistedmatrix.com/trac/browser/trunk/twisted/python/reflect.py#L382

For example, _importAndCheckStack('package.subpackage.module') raises
_NoModuleFound in the following scenario:

package/subpackage/__init__.py:
   import no_exist

when it should instead raise an ImportError from the buggy __init__.py.

I now think there should be at least a few unit tests to cover this case and a couple similar permutations.
History
Date User Action Args
2010-04-08 08:36:53chris.jerdoneksetrecipients: + chris.jerdonek, rbcollins, r.david.murray, michael.foord, slmnhq
2010-04-08 08:36:53chris.jerdoneksetmessageid: <1270715813.1.0.133672938365.issue7559@psf.upfronthosting.co.za>
2010-04-08 08:36:51chris.jerdoneklinkissue7559 messages
2010-04-08 08:36:51chris.jerdonekcreate