Bug#871998: pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#871998: pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED

Adrian Bunk-3
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

Reply | Threaded
Open this post in threaded view
|

Processed: Re: pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED

Debian Bug Tracking System
Processing control commands:

> forwarded -1 https://github.com/eisensheng/pytest-catchlog/issues/68
Bug #871998 [src:pytest-catchlog] pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED
Set Bug forwarded-to-address to 'https://github.com/eisensheng/pytest-catchlog/issues/68'.

--
871998: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871998
Debian Bug Tracking System
Contact [hidden email] with problems

Reply | Threaded
Open this post in threaded view
|

Bug#871998: marked as pending

Gianfranco Costamagna
In reply to this post by Adrian Bunk-3
tag 871998 pending
thanks

Hello,

Bug #871998 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:

    https://anonscm.debian.org/cgit/python-modules/packages/pytest-catchlog.git/commit/?id=8e8dc7b

---
commit 8e8dc7b432348bc80b414080cbff4852702c8b30
Author: Gianfranco Costamagna <[hidden email]>
Date:   Fri Sep 15 19:00:04 2017 +0200

    Update changelog

diff --git a/debian/changelog b/debian/changelog
index a45db91..05ed9c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+pytest-catchlog (1.2.2+git20170915-1) unstable; urgency=medium
+
+  * New upstream snapshot
+  * debian/patches/69.patch: Fix test failures with upstream PR
+    (Closes: #871998)
+  * Add new python-pygal dependency, needed for tests.
+  * Drop perf tests, not yet working with Debian toolchain
+
+ -- Gianfranco Costamagna <[hidden email]>  Fri, 15 Sep 2017 18:42:21 +0200
+
 pytest-catchlog (1.2.2-3) unstable; urgency=medium
 
   * drop git-dpm patch regime (remove deb/.git-dpm).

Reply | Threaded
Open this post in threaded view
|

Processed: Bug#871998 marked as pending

Debian Bug Tracking System
Processing commands for [hidden email]:

> tag 871998 pending
Bug #871998 [src:pytest-catchlog] pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED
Added tag(s) pending.
> thanks
Stopping processing here.

Please contact me if you need assistance.
--
871998: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871998
Debian Bug Tracking System
Contact [hidden email] with problems

Reply | Threaded
Open this post in threaded view
|

Bug#871998: marked as done (pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED)

Debian Bug Tracking System
In reply to this post by Adrian Bunk-3
Your message dated Fri, 15 Sep 2017 17:20:21 +0000
with message-id <[hidden email]>
and subject line Bug#871998: fixed in pytest-catchlog 1.2.2+git20170915-1
has caused the Debian Bug report #871998,
regarding pytest-catchlog FTBFS: test_pytest_catchlog.py::test_nothing_logged FAILED
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [hidden email]
immediately.)


--
871998: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871998
Debian Bug Tracking System
Contact [hidden email] with problems

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

Source: pytest-catchlog
Source-Version: 1.2.2+git20170915-1

We believe that the bug you reported is fixed in the latest version of
pytest-catchlog, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [hidden email],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <[hidden email]> (supplier of updated pytest-catchlog package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [hidden email])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 15 Sep 2017 18:42:21 +0200
Source: pytest-catchlog
Binary: python-pytest-catchlog python3-pytest-catchlog
Architecture: source
Version: 1.2.2+git20170915-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team <[hidden email]>
Changed-By: Gianfranco Costamagna <[hidden email]>
Description:
 python-pytest-catchlog - py.test plugin to capture test log messages
 python3-pytest-catchlog - py.test plugin to capture test log messages (Python3)
Closes: 871998
Changes:
 pytest-catchlog (1.2.2+git20170915-1) unstable; urgency=medium
 .
   * Team upload
   * Bump std-version to 4.1.0
   * New upstream snapshot
   * debian/patches/69.patch: Fix test failures with upstream PR
     (Closes: #871998)
   * Add new python-pygal dependency, needed for tests.
   * Drop perf tests, not yet working with Debian toolchain
Checksums-Sha1:
 8d0aaf766d455548cb26ead0b9882e99319ace91 2456 pytest-catchlog_1.2.2+git20170915-1.dsc
 8884c356ef0598ce1aa2c172d099e6192d11ebfa 19747 pytest-catchlog_1.2.2+git20170915.orig.tar.gz
 2a8112aa83b7027d09b2b26c5fe2c656d311f6b0 4676 pytest-catchlog_1.2.2+git20170915-1.debian.tar.xz
Checksums-Sha256:
 2b21a617a9de90187f6aba56016fc07dabd6e9e3664f9120a76b3c4b7cb57075 2456 pytest-catchlog_1.2.2+git20170915-1.dsc
 df77c0d315a7ad36d565dbd35fdcb3960aa52122e1a031afc9e399045f3c281c 19747 pytest-catchlog_1.2.2+git20170915.orig.tar.gz
 c27ed36fb4993ad183dbf6b01f16151a5c3be361359f6d6706cc3c4e348af47e 4676 pytest-catchlog_1.2.2+git20170915-1.debian.tar.xz
Files:
 0a411ac47f98d7caf7b4804f60aa5b10 2456 python optional pytest-catchlog_1.2.2+git20170915-1.dsc
 b27c3d9dbfeec44edd44bff5f581b39b 19747 python optional pytest-catchlog_1.2.2+git20170915.orig.tar.gz
 7068e31432b0dc06ead83aac330bcf97 4676 python optional pytest-catchlog_1.2.2+git20170915-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJZvAgrAAoJEPNPCXROn13Z/7EQAJJl4fywhZnn+1y4oIWrkQFC
IGWzcx9mxQMxvjKLjq8HdBRWI5UzFOfesyZdnavFuC5sVxx1v8EXg31w4ViiNHDr
D1bRaAgYfOgt+OpNdIyVEC4GrstEgiHAofvduWFh2j/ueyJ0FOAI8QLhSdAhqQoj
h0Cr8XGuZkm/90scMRNmgeVhfSyF6/qz9f7jTSPj4zoD2rLtSbLp0PbjMK8m0bb8
XtFuz/MozZ0jSGlUlqMdhRLeZ6B/YLzEq5xXbLcHgq9g5HUmsrujY25FGoDpNhRu
n4V9Mk5k+MWBQMoJ1nBshZAfl+PMNjtNT5zw04cRzh/551hrHz2oB/uJ0zXcqaKJ
7xCQfzo+qIArERSap0JhCF28MyO3uJiGW/Akfu3L1QFy13yn/3Om3hN7vKAbB06t
yqeeodo2ogTycA9CN7Dq0mqnLH3CEm289aHj921ltctfI5mhY7cx722W/6qm2TX5
4eZ69y1MLeEZrKk7rpO5Kxjo8IlqVNyKTETTtfxSHnoijNAzaXfvEZG/uWK/qRrl
mvw8UBmCUWZjeMaHD2n0GAYzeAusAnKwMZq3Sfj5X02GYEbusMeVpaIsczvomrxr
0ALvsI53AZ/2SJFiXdYD3YeMYFfcOGbt4P6fncKiljgtv2S6wBa5Sj/ojLa5xk6T
CcK4R8/dRSQoyHgRqc5n
=I5ZK
-----END PGP SIGNATURE-----