Created attachment 334750 [details] Build log for py3.3 FAIL: test_loadTestsFromName__unknown_module_name (unittest2.test.test_loader.Test_TestLoader) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/unittest2-0.5.1-r300/work/unittest2py3k-0.5.1-python3_3/lib/unittest2/test/test_loader.py", line 240, in test_loadTestsFromName__unknown_module_name loader.loadTestsFromName('sdasfasfasdf') ImportError: No module named 'sdasfasfasdf' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/portage/dev-python/unittest2-0.5.1-r300/work/unittest2py3k-0.5.1-python3_3/lib/unittest2/test/test_loader.py", line 242, in test_loadTestsFromName__unknown_module_name self.assertEqual(str(e), "No module named sdasfasfasdf") AssertionError: "No module named 'sdasfasfasdf'" != 'No module named sdasfasfasdf' - No module named 'sdasfasfasdf' ? - - + No module named sdasfasfasdf
Shouldn't this package be masked for Python 3.3 ? Also, it should be blocked by Bug #450616.
Is this concrete test failure implying unittest2 is not working with python-3.3? In other distributions like Mageia they are simply skipping the failing tests :/
Yeah, I guess skipping this test (or patching it) would be entirely fair.
Looks like tests are run differently on Mageia than Gentoo, they use nosetests: http://svnweb.mageia.org/packages/cauldron/python-unittest2/releases/0.5.1/2.mga3/SPECS/python-unittest2.spec?view=markup (and skip nosetests test_unittest2.py) We have: scripts/unit2 discover -s lib
What about this way to skip the test? --- /home/pacho/gentoo-x86/dev-python/unittest2/unittest2-0.5.1-r1.ebuild 2013-09-11 16:07:31.000000000 +0200 +++ ./unittest2-0.5.1-r1.ebuild 2013-10-05 09:26:22.000000000 +0200 @@ -27,6 +27,10 @@ # Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install(). sed -i -e "/'%s = unittest2:main_' % SCRIPT2,/d" setup.py || die + if use python_targets_python3_3; then + rm "${WORKDIR}"/${PY3_P}/unittest2/test/test_loader.py || die + fi + distutils-r1_python_prepare_all }
Fixed through removing the pointless additional message assertion in -r2.