Source: pytest Version: 2.6.3-2 Severity: serious Justification: fails to build from source
Dear Maintainer, I was trying to do a rebuild of some of the packages in jessie, and pytest fails the testsuite for python3.4 as far as I can tell. I used debootstrap --variant=buildd to create a jessie chroot, then installed the build-dep's of pytest and build-essential, and ran dpkg-buildpackage, and the testsuite failed so the package did not build. I believe this is the relevant bits from the build: ...snip... ============ 1093 passed, 23 skipped, 10 xfailed in 117.86 seconds ============= + PYTHONPATH=/root/pytest-2.6.3 python3.4 -m pytest testing ============================= test session starts ============================== platform linux -- Python 3.4.2 -- py-1.4.25 -- pytest-2.6.3 collected 1126 items testing/acceptance_test.py ............................................x....... testing/test_argcomplete.py .. testing/test_assertinterpret.py ...................ss......s testing/test_assertion.py ............................................ testing/test_assertrewrite.py ...............................ssss.... testing/test_capture.py ...........x..................................s.........s...........s.........s.......... testing/test_collection.py ...........x..................... testing/test_config.py ........x....s................... testing/test_conftest.py ............................ testing/test_core.py ..........FF.............................................. testing/test_doctest.py .................. testing/test_genscript.py s.s.ss. testing/test_helpconfig.py ........ testing/test_junitxml.py ............................ testing/test_mark.py ..................................x...............x. testing/test_monkeypatch.py ............................. testing/test_nose.py ............... testing/test_parseopt.py ........................s testing/test_pastebin.py ... testing/test_pdb.py ....ssssssssssss.s testing/test_pytester.py x....... testing/test_recwarn.py ........ testing/test_resultlog.py .......... testing/test_runner.py ..................sssssss..ssss.......x........... testing/test_runner_xunit.py ............. testing/test_session.py ................ testing/test_skipping.py ...s......................................... testing/test_terminal.py .......s.........................s................................. testing/test_tmpdir.py ....... testing/test_unittest.py ...................ssssssss......... testing/cx_freeze/tests/test_doctest.txt . testing/cx_freeze/tests/test_trivial.py .. testing/python/collect.py ................................................ testing/python/fixture.py ...........................................................x...................................................................... testing/python/integration.py ............... testing/python/metafunc.py ...........................................x........ testing/python/raises.py ......... =================================== FAILURES =================================== _______________ TestBootstrapping.test_import_plugin_importname ________________ self = <test_core.TestBootstrapping object at 0xf64aa14c> testdir = <TmpTestdir local('/tmp/pytest-65/testdir/test_import_plugin_importname0')> def test_import_plugin_importname(self, testdir): pluginmanager = PluginManager() pytest.raises(ImportError, 'pluginmanager.import_plugin("qweqwex.y")') pytest.raises(ImportError, 'pluginmanager.import_plugin("pytest_qweqwx.y")') testdir.syspathinsert() pluginname = "pytest_hello" testdir.makepyfile(**{pluginname: ""}) > pluginmanager.import_plugin("pytest_hello") /root/pytest-2.6.3/testing/test_core.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /root/pytest-2.6.3/_pytest/core.py:222: in import_plugin return self.import_plugin(modname[7:]) /root/pytest-2.6.3/_pytest/core.py:217: in import_plugin mod = importplugin(modname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ importspec = 'hello' def importplugin(importspec): name = importspec try: mod = "_pytest." + name __import__(mod) return sys.modules[mod] except ImportError: > __import__(importspec) E ImportError: No module named 'hello' /root/pytest-2.6.3/_pytest/core.py:275: ImportError _______________ TestBootstrapping.test_import_plugin_dotted_name _______________ self = <test_core.TestBootstrapping object at 0xf649ce6c> testdir = <TmpTestdir local('/tmp/pytest-65/testdir/test_import_plugin_dotted_name0')> def test_import_plugin_dotted_name(self, testdir): pluginmanager = PluginManager() pytest.raises(ImportError, 'pluginmanager.import_plugin("qweqwex.y")') pytest.raises(ImportError, 'pluginmanager.import_plugin("pytest_qweqwex.y")') testdir.syspathinsert() testdir.mkpydir("pkg").join("plug.py").write("x=3") pluginname = "pkg.plug" > pluginmanager.import_plugin(pluginname) /root/pytest-2.6.3/testing/test_core.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /root/pytest-2.6.3/_pytest/core.py:217: in import_plugin mod = importplugin(modname) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ importspec = 'pkg.plug' def importplugin(importspec): name = importspec try: mod = "_pytest." + name __import__(mod) return sys.modules[mod] except ImportError: > __import__(importspec) E ImportError: No module named 'pkg' /root/pytest-2.6.3/_pytest/core.py:275: ImportError =========================== short test summary info ============================ XFAIL testing/acceptance_test.py::TestInvocationVariants::()::test_noclass_discovery_if_not_testcase decide: feature or bug XFAIL testing/test_capture.py::TestPerTestCapturing::()::test_capture_scope_cache unimplemented feature XFAIL testing/test_collection.py::TestPrunetraceback::()::test_collect_report_postprocessing other mechanism for adding to reporting needed XFAIL testing/test_config.py::TestParseIni::()::test_confcutdir probably not needed XFAIL testing/test_mark.py::TestFunctional::()::test_merging_markers_deep unfixed XFAIL testing/test_mark.py::TestKeywordSelection::()::test_keyword_extra_dash XFAIL testing/test_pytester.py::test_reportrecorder reason: internal reportrecorder tests need refactoring XFAIL testing/test_runner.py::test_runtest_in_module_ordering XFAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_setup_enabled_functionnode 'enabled' feature not implemented XFAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_nested_marks is this important to support?? SKIP [11] /root/pytest-2.6.3/testing/test_runner.py:296: could not import 'xdist.plugin' SKIP [1] /root/pytest-2.6.3/testing/test_parseopt.py:247: need to be run with py.test executable, not /root/pytest-2.6.3/pytest.py SKIP [14] /root/pytest-2.6.3/_pytest/pytester.py:530: module 'pexpect' has __version__ None, required is: '3.0' SKIP [1] /root/pytest-2.6.3/testing/test_unittest.py:353: could not import 'twisted.trial.unittest' SKIP [2] /root/pytest-2.6.3/testing/test_capture.py:655: could not run 'lsof' SKIP [1] /root/pytest-2.6.3/testing/test_unittest.py:327: could not import 'twisted.trial.unittest' SKIP [2] /root/pytest-2.6.3/_pytest/skipping.py:142: text output different for bytes on python3 SKIP [1] /root/pytest-2.6.3/testing/conftest.py:117: no suitable pypy found SKIP [1] /root/pytest-2.6.3/_pytest/skipping.py:142: condition: sys.version_info >= (2,6) SKIP [2] /root/pytest-2.6.3/testing/test_assertinterpret.py:203: could not import '_pytest.assertion.oldinterpret' SKIP [4] /root/pytest-2.6.3/testing/test_unittest.py:367: could not import 'twisted.trial.unittest' SKIP [1] /root/pytest-2.6.3/testing/conftest.py:117: no suitable pypy3 found SKIP [5] /root/pytest-2.6.3/_pytest/skipping.py:142: condition: sys.version_info[0] >= 3 SKIP [1] /root/pytest-2.6.3/testing/conftest.py:117: no suitable python3.3 found SKIP [1] /root/pytest-2.6.3/testing/conftest.py:117: no suitable python2.6 found SKIP [1] /root/pytest-2.6.3/testing/test_unittest.py:340: could not import 'twisted.trial.unittest' SKIP [1] /root/pytest-2.6.3/testing/test_unittest.py:314: could not import 'twisted.trial.unittest' SKIP [1] /root/pytest-2.6.3/_pytest/core.py:142: plugin 'xdist' is missing SKIP [1] /root/pytest-2.6.3/_pytest/skipping.py:142: condition: sys.version_info[:2] not in [(2, 6), (2, 7)] ======= 2 failed, 1062 passed, 52 skipped, 10 xfailed in 147.21 seconds ======== debian/rules:61: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 1 make[1]: Leaving directory '/root/pytest-2.6.3' debian/rules:13: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (x86_64) Kernel: Linux 3.2.0-4-amd64 (I was running the chroot on top of wheezy, but I doubt the kernel would cause the errors above) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org