pytest-dev / py

Python development support library (note: maintenance only)
MIT License
69 stars 105 forks source link

1.4.21 broke test_forkedfunc #39

Closed pytestbot closed 8 years ago

pytestbot commented 8 years ago

All tests in test_forkedfunc.py are failing here, with the released tarball downloaded from PyPI.

Below I've pasted the whole test output with Python 3.4.1/2.7.8.

============================= test session starts ==============================
platform linux -- Python 3.4.1 -- py-1.4.20 -- pytest-2.5.2
collected 845 items

testing/test_iniconfig.py ...........................................
testing/code/test_assertion.py .................ss.......
testing/code/test_code.py ............
testing/code/test_excinfo.py ..........s.........s..........F..F...................................F
testing/code/test_source.py .......................x.......................................
testing/io_/test_capture.py .........s........s.............s.............s...........s....s...........s.........
testing/io_/test_saferepr.py ........
testing/io_/test_terminalwriter.py ...........................................
testing/log/test_log.py .................
testing/log/test_warning.py ......
testing/path/test_cacheutil.py .............
testing/path/test_local.py .........................................................................................x....s.............................ssssss..........................x
testing/path/test_svnauth.py ......ssss..............sssssssssss
testing/path/test_svnurl.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....
testing/path/test_svnwc.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.ss..sssss
testing/process/test_cmdexec.py .....
testing/process/test_forkedfunc.py EEEEEEEEEEEEEE
testing/process/test_killproc.py .
testing/root/test_builtin.py ...................
testing/root/test_error.py .....
testing/root/test_py_imports.py ................
testing/root/test_std.py ...
testing/root/test_xmlgen.py ...................

==================================== ERRORS ====================================
______________ ERROR at setup of test_waitfinish_removes_tempdir _______________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d372e8>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_______________ ERROR at setup of test_tempdir_gets_gc_collected _______________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33db0cc0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_basic_forkedfunc ____________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d37ac8>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
______________________ ERROR at setup of test_exitstatus _______________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d59358>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_execption_in_func ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33db0cf8>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_forkedfunc_on_fds ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d5c3c8>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_______________ ERROR at setup of test_forkedfunc_on_fds_output ________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d37780>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_________________ ERROR at setup of test_forkedfunc_on_stdout __________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d42748>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_forkedfunc_signal ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d59400>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_________________ ERROR at setup of test_forkedfunc_huge_data __________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d622b0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
________________________ ERROR at setup of test_box_seq ________________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d5a748>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_____________________ ERROR at setup of test_box_in_a_box ______________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d654e0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_kill_func_forked ____________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d37e48>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
_________________________ ERROR at setup of test_hooks _________________________

monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d33d66518>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21/testing/process/test_forkedfunc.py:8: AttributeError
=================================== FAILURES ===================================
_____________ TestFormattedExcinfo.test_repr_tracebackentry_short ______________

self = <test_excinfo.TestFormattedExcinfo object at 0x7f7d3448c5c0>
importasmod = <function TestFormattedExcinfo.pytest_funcarg__importasmod.<locals>.importasmod at 0x7f7d347c5378>

    def test_repr_tracebackentry_short(self, importasmod):
        mod = importasmod("""
                def func1():
                    raise ValueError("hello")
                def entry():
                    func1()
            """)
        excinfo = py.test.raises(ValueError, mod.entry)
        p = FormattedExcinfo(style="short")
        reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
        lines = reprtb.lines
        basename = py.path.local(mod.__file__).basename
>       assert lines[0] == '    func1()'
E       assert '>       func1()' == '    func1()'
E         - >       func1()
E         ? ----
E         +     func1()

testing/code/test_excinfo.py:550: AssertionError
_____________ TestFormattedExcinfo.test_traceback_short_no_source ______________

self = <test_excinfo.TestFormattedExcinfo object at 0x7f7d343d99e8>
importasmod = <function TestFormattedExcinfo.pytest_funcarg__importasmod.<locals>.importasmod at 0x7f7d345b1d90>
monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f7d343d9a20>

    def test_traceback_short_no_source(self, importasmod, monkeypatch):
        mod = importasmod("""
                def func1():
                    raise ValueError("hello")
                def entry():
                    func1()
            """)
        excinfo = py.test.raises(ValueError, mod.entry)
        from py._code.code import Code
        monkeypatch.setattr(Code, 'path', 'bogus')
        excinfo.traceback[0].frame.code.path = "bogus"
        p = FormattedExcinfo(style="short")
        reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
        lines = reprtb.lines
        last_p = FormattedExcinfo(style="short")
        last_reprtb = last_p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
        last_lines = last_reprtb.lines
        monkeypatch.undo()
        basename = py.path.local(mod.__file__).basename
>       assert lines[0] == '    func1()'
E       assert '>       func1()' == '    func1()'
E         - >       func1()
E         ? ----
E         +     func1()

testing/code/test_excinfo.py:614: AssertionError
________________ TestFormattedExcinfo.test_traceback_repr_style ________________

self = <test_excinfo.TestFormattedExcinfo object at 0x7f7d34667e80>
importasmod = <function TestFormattedExcinfo.pytest_funcarg__importasmod.<locals>.importasmod at 0x7f7d347c5bf8>

    def test_traceback_repr_style(self, importasmod):
        mod = importasmod("""
                def f():
                    g()
                def g():
                    h()
                def h():
                    i()
                def i():
                    raise ValueError()
            """)
        excinfo = py.test.raises(ValueError, mod.f)
        excinfo.traceback = excinfo.traceback.filter()
>       excinfo.traceback[1].set_repr_style("short")
E       AttributeError: 'TracebackEntry' object has no attribute 'set_repr_style'

testing/code/test_excinfo.py:836: AttributeError
=========================== short test summary info ============================
XFAIL testing/code/test_source.py::TestSourceParsingAndCompiling::()::test_getstatementrange_bug2
XFAIL testing/path/test_local.py::TestLocalPath::()::test_long_filenames
  reason: [NOTRUN] unreliable est for long filenames
XFAIL testing/path/test_local.py::TestUnicodePy2Py3::()::test_read_write
  changing read/write might break existing usages
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_repr_tracebackentry_short
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_traceback_short_no_source
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_traceback_repr_style
=== 3 failed, 615 passed, 210 skipped, 3 xfailed, 14 error in 10.10 seconds ====

============================= test session starts ==============================
platform linux2 -- Python 2.7.8 -- py-1.4.20 -- pytest-2.5.2
collected 845 items

testing/test_iniconfig.py ...........................................
testing/code/test_assertion.py .................ss.......
testing/code/test_code.py ............
testing/code/test_excinfo.py ..........s.........s..........F..F...................................F
testing/code/test_source.py .......................x.......................................
testing/io_/test_capture.py .........s................................................s................s.........
testing/io_/test_saferepr.py ........
testing/io_/test_terminalwriter.py ...........................................
testing/log/test_log.py .................
testing/log/test_warning.py ......
testing/path/test_cacheutil.py .............
testing/path/test_local.py .........................................................................................x....s.............................ssssss..........................x
testing/path/test_svnauth.py ......ssss..............sssssssssss
testing/path/test_svnurl.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....
testing/path/test_svnwc.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.ss..sssss
testing/process/test_cmdexec.py .....
testing/process/test_forkedfunc.py EEEEEEEEEEEEEE
testing/process/test_killproc.py .
testing/root/test_builtin.py ...................
testing/root/test_error.py .....
testing/root/test_py_imports.py ................
testing/root/test_std.py ...
testing/root/test_xmlgen.py ...................

==================================== ERRORS ====================================
______________ ERROR at setup of test_waitfinish_removes_tempdir _______________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e4234368>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_______________ ERROR at setup of test_tempdir_gets_gc_collected _______________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e3e2f320>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_basic_forkedfunc ____________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40f5560>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
______________________ ERROR at setup of test_exitstatus _______________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40f4cb0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_execption_in_func ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40f3908>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_forkedfunc_on_fds ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40ed9e0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_______________ ERROR at setup of test_forkedfunc_on_fds_output ________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40ef830>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_________________ ERROR at setup of test_forkedfunc_on_stdout __________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e4277cb0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_forkedfunc_signal ___________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e48db200>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_________________ ERROR at setup of test_forkedfunc_huge_data __________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e4e68a28>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
________________________ ERROR at setup of test_box_seq ________________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e4117d88>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_____________________ ERROR at setup of test_box_in_a_box ______________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e40f5b48>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
___________________ ERROR at setup of test_kill_func_forked ____________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e3fe28c0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
_________________________ ERROR at setup of test_hooks _________________________

monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e3fed3b0>

    @pytest.fixture(autouse=True)
    def clear_forkedfunc(monkeypatch):
>       monkeypatch.setattr(py.process.ForkedFunc, "_on_start", [])
E       AttributeError: <class 'py._process.forkedfunc.ForkedFunc'> has no attribute '_on_start'

/build/python-py/src/py-1.4.21-py2/testing/process/test_forkedfunc.py:8: AttributeError
=================================== FAILURES ===================================
_____________ TestFormattedExcinfo.test_repr_tracebackentry_short ______________

self = <test_excinfo.TestFormattedExcinfo instance at 0x7f04e44ad710>
importasmod = <function importasmod at 0x7f04e4919f50>

    def test_repr_tracebackentry_short(self, importasmod):
        mod = importasmod("""
                def func1():
                    raise ValueError("hello")
                def entry():
                    func1()
            """)
        excinfo = py.test.raises(ValueError, mod.entry)
        p = FormattedExcinfo(style="short")
        reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
        lines = reprtb.lines
        basename = py.path.local(mod.__file__).basename
>       assert lines[0] == '    func1()'
E       assert '>       func1()' == '    func1()'
E         - >       func1()
E         ? ----
E         +     func1()

testing/code/test_excinfo.py:550: AssertionError
_____________ TestFormattedExcinfo.test_traceback_short_no_source ______________

self = <test_excinfo.TestFormattedExcinfo instance at 0x7f04e420d7a0>
importasmod = <function importasmod at 0x7f04e436ac80>
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x7f04e420d878>

    def test_traceback_short_no_source(self, importasmod, monkeypatch):
        mod = importasmod("""
                def func1():
                    raise ValueError("hello")
                def entry():
                    func1()
            """)
        excinfo = py.test.raises(ValueError, mod.entry)
        from py._code.code import Code
        monkeypatch.setattr(Code, 'path', 'bogus')
        excinfo.traceback[0].frame.code.path = "bogus"
        p = FormattedExcinfo(style="short")
        reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
        lines = reprtb.lines
        last_p = FormattedExcinfo(style="short")
        last_reprtb = last_p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
        last_lines = last_reprtb.lines
        monkeypatch.undo()
        basename = py.path.local(mod.__file__).basename
>       assert lines[0] == '    func1()'
E       assert '>       func1()' == '    func1()'
E         - >       func1()
E         ? ----
E         +     func1()

testing/code/test_excinfo.py:614: AssertionError
________________ TestFormattedExcinfo.test_traceback_repr_style ________________

self = <test_excinfo.TestFormattedExcinfo instance at 0x7f04e41ce440>
importasmod = <function importasmod at 0x7f04e407eaa0>

    def test_traceback_repr_style(self, importasmod):
        mod = importasmod("""
                def f():
                    g()
                def g():
                    h()
                def h():
                    i()
                def i():
                    raise ValueError()
            """)
        excinfo = py.test.raises(ValueError, mod.f)
        excinfo.traceback = excinfo.traceback.filter()
>       excinfo.traceback[1].set_repr_style("short")
E       AttributeError: 'TracebackEntry' object has no attribute 'set_repr_style'

testing/code/test_excinfo.py:836: AttributeError
=========================== short test summary info ============================
XFAIL testing/code/test_source.py::TestSourceParsingAndCompiling::()::test_getstatementrange_bug2
XFAIL testing/path/test_local.py::TestLocalPath::()::test_long_filenames
  reason: [NOTRUN] unreliable est for long filenames
XFAIL testing/path/test_local.py::TestUnicodePy2Py3::()::test_read_write
  changing read/write might break existing usages
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_repr_tracebackentry_short
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_traceback_short_no_source
FAIL testing/code/test_excinfo.py::TestFormattedExcinfo::()::test_traceback_repr_style
==== 3 failed, 619 passed, 206 skipped, 3 xfailed, 14 error in 5.82 seconds ====
pytestbot commented 8 years ago

Original comment by @felixonmars

Sorry, seems py.test picked an old py installation, nevermind then.