Message102603
| 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. |
|