R. David Murray <[email protected]> added the comment:
I updated the tests to Python3, and attempted to replicate the fix using the
new importlib qualname support. Even if it had worked, this would not have
finished the patch, since Michael wants to generate a failing test instead of
raising the import error.
However, I'm running into weird problems and am shelving this for the moment.
The issue is that if I run the tests like this:
./python -m unittest test.test_unittest
(or via regrtest) they fail with the wrong name in the error message. If I run
them like this:
./python -m unittest unittest.test.test_loader.TestLoader.<name of test>
the right name is in the message. I suspect the bug is in the tests, but I'm
not spotting it. Maybe someone else will see it.
----------
Added file: http://bugs.python.org/file25790/unittest_loader_import_error.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7559>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com