[Python-modules-team] Bug#871998: pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED

Adrian Bunk bunk at debian.org
Sun Aug 13 12:38:30 UTC 2017


Source: pytest-catchlog
Version: 1.2.2-3
Severity: serious

Some recent change in unstable makes pytest-catchlog FTBFS:

https://tests.reproducible-builds.org/debian/history/pytest-catchlog.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pytest-catchlog.html

...
============================= test session starts ==============================
platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0 -- /usr/bin/python2.7
cachedir: .cache
rootdir: /build/1st/pytest-catchlog-1.2.2, inifile:
plugins: catchlog-1.2.2
collecting ... collected 14 items

test_pytest_catchlog.py::test_nothing_logged FAILED

=================================== FAILURES ===================================
_____________________________ test_nothing_logged ______________________________

testdir = <Testdir local('/tmp/pytest-of-pbuilder1/pytest-0/testdir/test_nothing_logged0')>

    def test_nothing_logged(testdir):
        testdir.makepyfile('''
            import sys
            import logging
    
            def test_foo():
                sys.stdout.write('text going to stdout')
                sys.stderr.write('text going to stderr')
                assert False
            ''')
        result = testdir.runpytest()
        assert result.ret == 1
        result.stdout.fnmatch_lines(['*- Captured stdout call -*',
                                     'text going to stdout'])
        result.stdout.fnmatch_lines(['*- Captured stderr call -*',
                                     'text going to stderr'])
        py.test.raises(Exception, result.stdout.fnmatch_lines,
>                      ['*- Captured *log call -*'])
E       Failed: nomatch: '*- Captured stdout call -*'
E           and: u'============================= test session starts =============================='
E           and: u'platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0'
E           and: u'rootdir: /tmp/pytest-of-pbuilder1/pytest-0/testdir/test_nothing_logged0, inifile:'
E           and: u'plugins: catchlog-1.2.2'
E           and: u'collected 1 item'
E           and: u''
E           and: u'test_nothing_logged.py F'
E           and: u''
E           and: u'=================================== FAILURES ==================================='
E           and: u'___________________________________ test_foo ___________________________________'
E           and: u''
E           and: u'    def test_foo():'
E           and: u"        sys.stdout.write('text going to stdout')"
E           and: u"        sys.stderr.write('text going to stderr')"
E           and: u'>       assert False'
E           and: u'E       assert False'
E           and: u''
E           and: u'test_nothing_logged.py:7: AssertionError'
E       fnmatch: '*- Captured stdout call -*'
E          with: u'----------------------------- Captured stdout call -----------------------------'
E       exact match: 'text going to stdout'
E       nomatch: '*- Captured stderr call -*'
E           and: u'============================= test session starts =============================='
E           and: u'platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0'
E           and: u'rootdir: /tmp/pytest-of-pbuilder1/pytest-0/testdir/test_nothing_logged0, inifile:'
E           and: u'plugins: catchlog-1.2.2'
E           and: u'collected 1 item'
E           and: u''
E           and: u'test_nothing_logged.py F'
E           and: u''
E           and: u'=================================== FAILURES ==================================='
E           and: u'___________________________________ test_foo ___________________________________'
E           and: u''
E           and: u'    def test_foo():'
E           and: u"        sys.stdout.write('text going to stdout')"
E           and: u"        sys.stderr.write('text going to stderr')"
E           and: u'>       assert False'
E           and: u'E       assert False'
E           and: u''
E           and: u'test_nothing_logged.py:7: AssertionError'
E           and: u'----------------------------- Captured stdout call -----------------------------'
E           and: u'text going to stdout'
E       fnmatch: '*- Captured stderr call -*'
E          with: u'----------------------------- Captured stderr call -----------------------------'
E       exact match: 'text going to stderr'
E       nomatch: '*- Captured *log call -*'
E           and: u'============================= test session starts =============================='
E           and: u'platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0'
E           and: u'rootdir: /tmp/pytest-of-pbuilder1/pytest-0/testdir/test_nothing_logged0, inifile:'
E           and: u'plugins: catchlog-1.2.2'
E           and: u'collected 1 item'
E           and: u''
E           and: u'test_nothing_logged.py F'
E           and: u''
E           and: u'=================================== FAILURES ==================================='
E           and: u'___________________________________ test_foo ___________________________________'
E           and: u''
E           and: u'    def test_foo():'
E           and: u"        sys.stdout.write('text going to stdout')"
E           and: u"        sys.stderr.write('text going to stderr')"
E           and: u'>       assert False'
E           and: u'E       assert False'
E           and: u''
E           and: u'test_nothing_logged.py:7: AssertionError'
E           and: u'----------------------------- Captured stdout call -----------------------------'
E           and: u'text going to stdout'
E           and: u'----------------------------- Captured stderr call -----------------------------'
E           and: u'text going to stderr'
E           and: u'=========================== 1 failed in 0.09 seconds ==========================='
E           and: u''
E       remains unmatched: '*- Captured *log call -*'

/build/1st/pytest-catchlog-1.2.2/test_pytest_catchlog.py:27: Failed
----------------------------- Captured stdout call -----------------------------
============================= test session starts ==============================
platform linux2 -- Python 2.7.13+, pytest-3.2.0, py-1.4.34, pluggy-0.4.0
rootdir: /tmp/pytest-of-pbuilder1/pytest-0/testdir/test_nothing_logged0, inifile:
plugins: catchlog-1.2.2
collected 1 item

test_nothing_logged.py F

=================================== FAILURES ===================================
___________________________________ test_foo ___________________________________

    def test_foo():
        sys.stdout.write('text going to stdout')
        sys.stderr.write('text going to stderr')
>       assert False
E       assert False

test_nothing_logged.py:7: AssertionError
----------------------------- Captured stdout call -----------------------------
text going to stdout
----------------------------- Captured stderr call -----------------------------
text going to stderr
=========================== 1 failed in 0.09 seconds ===========================
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
=========================== 1 failed in 0.40 seconds ===========================
E: pybuild pybuild:283: test: plugin custom failed with: exit code=2: python2.7 -m pytest -v -x
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
debian/rules:12: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 25



More information about the Python-modules-team mailing list