[issue5533] unittest can't deal with packages

2009-04-05 Thread Georg Brandl
Georg Brandl ge...@python.org 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.

[issue5533] unittest can't deal with packages

2009-03-21 Thread Aristotelis Mikropoulos
New submission from Aristotelis Mikropoulos amik...@gmail.com: 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

[issue5533] unittest can't deal with packages

2009-03-21 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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
Aristotelis Mikropoulos amik...@gmail.com added the comment: You are right, here is the file. -- Added file: http://bugs.python.org/file13390/test ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5533