[issue5533] unittest can't deal with packages

2009-04-05 Thread Georg Brandl
Georg Brandl added the comment: Your script is flawed in two parts: * it doesn't filter the return value of listdir(), which leads to each test being executed twice in the presence of .pyc files * __import__("foo.bar") does *not* return the foo.bar submodule, but the foo module. But that is a

[issue5533] unittest can't deal with packages

2009-03-21 Thread Aristotelis Mikropoulos
Aristotelis Mikropoulos added the comment: You are right, here is the file. -- Added file: http://bugs.python.org/file13390/test ___ Python tracker ___ __

[issue5533] unittest can't deal with packages

2009-03-21 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: dpaste.com will eventually discard your proof. You should include all information for a bug report on the tracker. You can include the code in a comment or attach it to the ticket as a file. -- nosy: +exarkun

[issue5533] unittest can't deal with packages

2009-03-21 Thread Aristotelis Mikropoulos
New submission from Aristotelis Mikropoulos : There is a problem with unittest, as it cannot handle package imports. This http://dpaste.com/17315/ proves it. -- components: Library (Lib) messages: 83945 nosy: Indy severity: normal status: open title: unittest can't deal with packages typ