[issue7872] Incorrect error raised on importing invalid module via unittest

2010-02-07 Thread Michael Foord
Michael Foord added the comment: Duplicate of issue 7559. -- resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed ___ Python tracker ___

[issue7872] Incorrect error raised on importing invalid module via unittest

2010-02-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord priority: -> normal stage: -> test needed versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker ___ __

[issue7872] Incorrect error raised on importing invalid module via unittest

2010-02-07 Thread Daniel Waterworth
New submission from Daniel Waterworth : The problem is that when you import a module which is inside a package via 'loadTestsFromName' in unittest.TestLoader. If the imported module raises a ImportError this is read to mean that the module itself is unavailable. To illustrate this I have a sma