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