Source: pytest
Version: 2.2.4-2
Severity: serious
Tags: sid jessie
User: debian-pyt...@lists.debian.org
Usertags: python3.3

pytest FTBFS:
| + PYTHONPATH=/build/pytest-6izT_R/pytest-2.2.4 python3.3 -m pytest testing
| ============================= test session starts 
==============================
| platform linux -- Python 3.3.1 -- pytest-2.2.4
| collecting ... collected 730 items
|
| testing/acceptance_test.py ............................F.........x.......
| testing/test_assertinterpret.py ..................ss......s
| testing/test_assertion.py ........................
| testing/test_assertrewrite.py ......................
| testing/test_capture.py ............x.................
| testing/test_collection.py ...........x...................
| testing/test_config.py ........x................
| testing/test_conftest.py .............................
| testing/test_core.py ..................................................
| testing/test_doctest.py .........
| testing/test_genscript.py sss.ssss
| testing/test_helpconfig.py ........
| testing/test_junitxml.py .....................
| testing/test_mark.py .............................
| testing/test_monkeypatch.py .................
| testing/test_nose.py sssssssss
| testing/test_parseopt.py ............
| testing/test_pastebin.py ...
| testing/test_pdb.py ....sssssss.
| testing/test_pytester.py x......
| testing/test_python.py 
..................................................................................................
| 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 .................................
| testing/test_terminal.py 
.......s.........................s............................
| testing/test_tmpdir.py ......
| testing/test_unittest.py .................sss....F
|
| =================================== FAILURES 
===================================
| ___________ TestInvocationVariants.test_python_minus_m_invocation_ok 
___________
|
| self = <acceptance_test.TestInvocationVariants object at 0x560b538c>
| testdir = <TmpTestdir 
local('/tmp/pytest-2/testdir/test_python_minus_m_invocation_ok0/test_python_minus_m_invocation_ok')>
|
|     @pytest.mark.skipif("sys.version_info < (2,5)")
|     def test_python_minus_m_invocation_ok(self, testdir):
|         p1 = testdir.makepyfile("def test_hello(): pass")
|         res = testdir.run(py.std.sys.executable, "-m", "py.test", str(p1))
| >       assert res.ret == 0
| E       assert 1 == 0
| E        +  where 1 = <_pytest.pytester.RunResult object at 0x55f770ac>.ret
|
| /build/pytest-6izT_R/pytest-2.2.4/testing/acceptance_test.py:361: 
AssertionError
| ------------------------------- Captured stdout 
--------------------------------
| running ['/usr/bin/python3.3', '-m', 'py.test', 
'/tmp/pytest-2/testdir/test_python_minus_m_invocation_ok0/test_python_minus_m_invocation_ok/test_python_minus_m_invocation_ok.py']
 curdir= 
/tmp/pytest-2/testdir/test_python_minus_m_invocation_ok0/test_python_minus_m_invocation_ok
| ------------------------------- Captured stderr 
--------------------------------
| /usr/bin/python3.3: loader cannot handle py.test
| _______________________ test_unittest_unexpected_failure 
_______________________
|
| testdir = <TmpTestdir 
local('/tmp/pytest-2/testdir/test_unittest_unexpected_failure0/test_unittest_unexpected_failure')>
|
|     @pytest.mark.skipif("sys.version_info < (2,7)")
|     def test_unittest_unexpected_failure(testdir):
|         testdir.makepyfile("""
|             import unittest
|             class MyTestCase(unittest.TestCase):
|                 @unittest.expectedFailure
|                 def test_func1(self):
|                     assert 0
|                 @unittest.expectedFailure
|                 def test_func2(self):
|                     assert 1
|         """)
|         result = testdir.runpytest("-rxX")
|         result.stdout.fnmatch_lines([
|             "*XFAIL*MyTestCase*test_func1*",
|             "*XPASS*MyTestCase*test_func2*",
| >           "*1 xfailed*1 xpass*",
|         ])
| E       Failed: remains unmatched: '*1 xfailed*1 xpass*', see stderr
|
| /build/pytest-6izT_R/pytest-2.2.4/testing/test_unittest.py:479: Failed
| ------------------------------- Captured stdout 
--------------------------------
| running ['/usr/bin/python3.3', '/build/pytest-6izT_R/pytest-2.2.4/pytest.py', 
'--basetemp=/tmp/pytest-2/testdir/test_unittest_unexpected_failure0/test_unittest_unexpected_failure/runpytest-0',
 '-rxX'] curdir= 
/tmp/pytest-2/testdir/test_unittest_unexpected_failure0/test_unittest_unexpected_failure
| ============================= test session starts 
==============================
| platform linux -- Python 3.3.1 -- pytest-2.2.4
| collecting ... collected 2 items
|
| test_unittest_unexpected_failure.py xX
| =========================== short test summary info 
============================
| XFAIL test_unittest_unexpected_failure.py::MyTestCase::test_func1
|   reason:
| XPASS test_unittest_unexpected_failure.py::MyTestCase::test_func2 reason: ''
|
| ===================== 1 xpassed, 1 xfailed in 0.04 seconds 
=====================
| ------------------------------- Captured stderr 
--------------------------------
| nomatch: '*XFAIL*MyTestCase*test_func1*'
|     and: '============================= test session starts 
=============================='
|     and: 'platform linux -- Python 3.3.1 -- pytest-2.2.4'
|     and: 'collecting ... collected 2 items'
|     and: ''
|     and: 'test_unittest_unexpected_failure.py xX'
|     and: '=========================== short test summary info 
============================'
| fnmatch: '*XFAIL*MyTestCase*test_func1*'
|    with: 'XFAIL test_unittest_unexpected_failure.py::MyTestCase::test_func1'
| nomatch: '*XPASS*MyTestCase*test_func2*'
|     and: '  reason: '
| fnmatch: '*XPASS*MyTestCase*test_func2*'
|    with: "XPASS test_unittest_unexpected_failure.py::MyTestCase::test_func2 
reason: ''"
| nomatch: '*1 xfailed*1 xpass*'
|     and: ''
|     and: '===================== 1 xpassed, 1 xfailed in 0.04 seconds 
====================='
| ======== 2 failed, 680 passed, 42 skipped, 6 xfailed in 116.74 seconds 
=========
| make[1]: *** [override_dh_auto_test] Error 1
| make[1]: Leaving directory `/build/pytest-6izT_R/pytest-2.2.4'
| make: *** [build] Error 2
| dpkg-buildpackage: error: debian/rules build gave error exit status 2

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to