Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1450411 Details for
Bug 1590256
python-pytest-timeout: FTBFS in rawhide
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Failed build log
build.log (text/plain), 46.53 KB, created by
Tomas Orsava
on 2018-06-12 10:22:32 UTC
(
hide
)
Description:
Failed build log
Filename:
MIME Type:
Creator:
Tomas Orsava
Created:
2018-06-12 10:22:32 UTC
Size:
46.53 KB
patch
obsolete
>Mock Version: 1.3.4 >Mock Version: 1.3.4 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-pytest-timeout.spec'], chrootPath='/var/lib/mock/f29-build-12707733-928097/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xb5f6cad0>timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-pytest-timeout.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False >Building target platforms: noarch >Building for target noarch >Wrote: /builddir/build/SRPMS/python-pytest-timeout-1.2.0-4.fc29.src.rpm >Child return code was: 0 >ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pytest-timeout.spec'], chrootPath='/var/lib/mock/f29-build-12707733-928097/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0xb5f6cad0>timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) >Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pytest-timeout.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False >Building target platforms: noarch >Building for target noarch >Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Q9yz9k >+ umask 022 >+ cd /builddir/build/BUILD >+ cd /builddir/build/BUILD >+ rm -rf pytest-timeout-1.2.0 >+ /usr/bin/gzip -dc /builddir/build/SOURCES/pytest-timeout-1.2.0.tar.gz >+ /usr/bin/tar -xof - >+ STATUS=0 >+ '[' 0 -ne 0 ']' >+ cd pytest-timeout-1.2.0 >+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . >+ exit 0 >Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YN5ZCu >+ umask 022 >+ cd /builddir/build/BUILD >+ cd pytest-timeout-1.2.0 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=neon -mfloat-abi=hard' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' >running build >running build_py >creating build >creating build/lib >copying pytest_timeout.py -> build/lib >+ sleep 1 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=neon -mfloat-abi=hard' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' >running build >running build_py >+ sleep 1 >+ exit 0 >Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Z34Vit >+ umask 022 >+ cd /builddir/build/BUILD >+ '[' /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch '!=' / ']' >+ rm -rf /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch >++ dirname /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch >+ mkdir -p /builddir/build/BUILDROOT >+ mkdir /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch >+ cd pytest-timeout-1.2.0 >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=neon -mfloat-abi=hard' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7 >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages >copying build/lib/pytest_timeout.py -> /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages >byte-compiling /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py to pytest_timeout.pyc >writing byte-compilation script '/tmp/tmpYCQpzA.py' >/usr/bin/python2 -O /tmp/tmpYCQpzA.py >removing /tmp/tmpYCQpzA.py >running install_egg_info >running egg_info >writing requirements to pytest_timeout.egg-info/requires.txt >writing pytest_timeout.egg-info/PKG-INFO >writing top-level names to pytest_timeout.egg-info/top_level.txt >writing dependency_links to pytest_timeout.egg-info/dependency_links.txt >writing entry points to pytest_timeout.egg-info/entry_points.txt >reading manifest file 'pytest_timeout.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_timeout.egg-info/SOURCES.txt' >Copying pytest_timeout.egg-info to /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout-1.2.0-py2.7.egg-info >running install_scripts >+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=armv7-a -mfpu=neon -mfloat-abi=hard' >+ LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' >+ /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch >running install >running install_lib >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6 >creating /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6/site-packages >copying build/lib/pytest_timeout.py -> /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6/site-packages >byte-compiling /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6/site-packages/pytest_timeout.py to pytest_timeout.cpython-36.pyc >writing byte-compilation script '/tmp/tmpq_zlqasf.py' >/usr/bin/python3 /tmp/tmpq_zlqasf.py >removing /tmp/tmpq_zlqasf.py >running install_egg_info >running egg_info >writing pytest_timeout.egg-info/PKG-INFO >writing dependency_links to pytest_timeout.egg-info/dependency_links.txt >writing entry points to pytest_timeout.egg-info/entry_points.txt >writing requirements to pytest_timeout.egg-info/requires.txt >writing top-level names to pytest_timeout.egg-info/top_level.txt >reading manifest file 'pytest_timeout.egg-info/SOURCES.txt' >reading manifest template 'MANIFEST.in' >writing manifest file 'pytest_timeout.egg-info/SOURCES.txt' >Copying pytest_timeout.egg-info to /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6/site-packages/pytest_timeout-1.2.0-py3.6.egg-info >running install_scripts >+ /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.2.0-4.fc29 --unique-debug-suffix -1.2.0-4.fc29.noarch --unique-debug-src-base python-pytest-timeout-1.2.0-4.fc29.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pytest-timeout-1.2.0 >find: 'debug': No such file or directory >+ /usr/lib/rpm/check-buildroot >+ /usr/lib/rpm/redhat/brp-ldconfig >/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory >+ /usr/lib/rpm/brp-compress >+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip >+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7 using /usr/bin/python2.7 >Bytecompiling .py files below /builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python3.6 using /usr/bin/python3.6 >+ /usr/lib/rpm/brp-python-hardlink >+ /usr/lib/rpm/redhat/brp-mangle-shebangs >Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.IsKciB >+ umask 022 >+ cd /builddir/build/BUILD >+ cd pytest-timeout-1.2.0 >+ PYTHONPATH=/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages >+ py.test-2.7 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /builddir/build/BUILD/pytest-timeout-1.2.0, inifile: tox.ini >plugins: timeout-1.2.0 >collected 31 items >test_pytest_timeout.py ..F..F.F.F.F.F.F.F.F.FF..F..... [100%] >=================================== FAILURES =================================== >_________________________________ test_thread __________________________________ >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_thread0')> > def test_thread(testdir): > testdir.makepyfile(""" > import time > > def test_foo(): > time.sleep(2) > """) > result = testdir.runpytest('--timeout=1', '--timeout_method=thread') > result.stderr.fnmatch_lines([ > '*++ Timeout ++*', > '*~~ Stack of MainThread* ~~*', > '*File *, line *, in *', >> '*++ Timeout ++*', > ]) >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:59: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.pytester.LineMatcher object at 0xb5f98990> >lines2 = ['*++ Timeout ++*', '*~~ Stack of MainThread* ~~*', '*File *, line *, in *', '*++ Timeout ++*'] > def fnmatch_lines(self, lines2): > """Search captured text for matching lines using ``fnmatch.fnmatch``. > > The argument is a list of lines which have to match and can use glob > wildcards. If they do not match a pytest.fail() is called. The > matches and non-matches are also printed on stdout. > > """ >> self._match_lines(lines2, fnmatch, "fnmatch") >E Failed: remains unmatched: '*++ Timeout ++*' >/usr/lib/python2.7/site-packages/_pytest/pytester.py:1223: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_thread0/runpytest-0 --timeout=1 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_thread0 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_thread0, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_thread.py >_______________________ test_fix_setup[function-thread] ________________________ >meth = 'thread', scope = 'function' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup1')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_setup(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self): > time.sleep(2) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E AssertionError: assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup1, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' + '') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup1, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5e84170>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5e84170>> = <_pytest.pytester.LineMatcher object at 0xb5e84170>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5e84170> = <_pytest.pytester.RunResult object at 0xb5e84550>.stdout >E + and '' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5e849b0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5e849b0>> = <_pytest.pytester.LineMatcher object at 0xb5e849b0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5e849b0> = <_pytest.pytester.RunResult object at 0xb5e84550>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:112: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup1/runpytest-0 --timeout=1 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup1 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup1, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_setup.py >_________________________ test_fix_setup[class-thread] _________________________ >meth = 'thread', scope = 'class' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup3')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_setup(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self): > time.sleep(2) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E AssertionError: assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup3, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' + '') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup3, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f003d0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f003d0>> = <_pytest.pytester.LineMatcher object at 0xb5f003d0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f003d0> = <_pytest.pytester.RunResult object at 0xb5f00470>.stdout >E + and '' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f002d0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f002d0>> = <_pytest.pytester.LineMatcher object at 0xb5f002d0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f002d0> = <_pytest.pytester.RunResult object at 0xb5f00470>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:112: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup3/runpytest-0 --timeout=1 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup3 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup3, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_setup.py >________________________ test_fix_setup[module-thread] _________________________ >meth = 'thread', scope = 'module' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup5')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_setup(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self): > time.sleep(2) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E AssertionError: assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup5, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' + '') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup5, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f029b0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f029b0>> = <_pytest.pytester.LineMatcher object at 0xb5f029b0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f029b0> = <_pytest.pytester.RunResult object at 0xb5f02990>.stdout >E + and '' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02b10>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02b10>> = <_pytest.pytester.LineMatcher object at 0xb5f02b10>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f02b10> = <_pytest.pytester.RunResult object at 0xb5f02990>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:112: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup5/runpytest-0 --timeout=1 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup5 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup5, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_setup.py >________________________ test_fix_setup[session-thread] ________________________ >meth = 'thread', scope = 'session' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup7')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_setup(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self): > time.sleep(2) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E AssertionError: assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup7, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' + '') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...t-0/test_fix_setup7, inifile:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_setup.py ' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7e90>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7e90>> = <_pytest.pytester.LineMatcher object at 0xb5ef7e90>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ef7e90> = <_pytest.pytester.RunResult object at 0xb5ef7b70>.stdout >E + and '' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7bd0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7bd0>> = <_pytest.pytester.LineMatcher object at 0xb5ef7bd0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ef7bd0> = <_pytest.pytester.RunResult object at 0xb5ef7b70>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:112: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_setup7/runpytest-0 --timeout=1 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup7 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_setup7, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_setup.py >_____________________ test_fix_finalizer[function-thread] ______________________ >meth = 'thread', scope = 'function' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer1')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_finalizer(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self, request): > print('fix setup') > def fin(): > print('fix finaliser') > time.sleep(2) > request.addfinalizer(fin) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', '-s', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' + 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ee67f0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ee67f0>> = <_pytest.pytester.LineMatcher object at 0xb5ee67f0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ee67f0> = <_pytest.pytester.RunResult object at 0xb5ee6bf0>.stdout >E + and 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ee6890>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ee6890>> = <_pytest.pytester.LineMatcher object at 0xb5ee6890>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ee6890> = <_pytest.pytester.RunResult object at 0xb5ee6bf0>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:137: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer1/runpytest-0 --timeout=1 -s --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer1 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer1, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_finalizer.py fix setup >.fix finaliser >----------------------------- Captured stderr call ----------------------------- >Traceback (most recent call last): > File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 257, in timeout_timer > stdout, stderr = capman.suspendcapture(item) >AttributeError: 'CaptureManager' object has no attribute 'suspendcapture' >_______________________ test_fix_finalizer[class-thread] _______________________ >meth = 'thread', scope = 'class' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer3')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_finalizer(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self, request): > print('fix setup') > def fin(): > print('fix finaliser') > time.sleep(2) > request.addfinalizer(fin) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', '-s', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' + 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f17690>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f17690>> = <_pytest.pytester.LineMatcher object at 0xb5f17690>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f17690> = <_pytest.pytester.RunResult object at 0xb5f17d10>.stdout >E + and 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f172b0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f172b0>> = <_pytest.pytester.LineMatcher object at 0xb5f172b0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f172b0> = <_pytest.pytester.RunResult object at 0xb5f17d10>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:137: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer3/runpytest-0 --timeout=1 -s --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer3 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer3, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_finalizer.py fix setup >.fix finaliser >----------------------------- Captured stderr call ----------------------------- >Traceback (most recent call last): > File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 257, in timeout_timer > stdout, stderr = capman.suspendcapture(item) >AttributeError: 'CaptureManager' object has no attribute 'suspendcapture' >______________________ test_fix_finalizer[module-thread] _______________________ >meth = 'thread', scope = 'module' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer5')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_finalizer(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self, request): > print('fix setup') > def fin(): > print('fix finaliser') > time.sleep(2) > request.addfinalizer(fin) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', '-s', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' + 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02150>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02150>> = <_pytest.pytester.LineMatcher object at 0xb5f02150>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f02150> = <_pytest.pytester.RunResult object at 0xb5f02af0>.stdout >E + and 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02530>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5f02530>> = <_pytest.pytester.LineMatcher object at 0xb5f02530>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5f02530> = <_pytest.pytester.RunResult object at 0xb5f02af0>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:137: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer5/runpytest-0 --timeout=1 -s --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer5 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer5, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_finalizer.py fix setup >.fix finaliser >----------------------------- Captured stderr call ----------------------------- >Traceback (most recent call last): > File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 257, in timeout_timer > stdout, stderr = capman.suspendcapture(item) >AttributeError: 'CaptureManager' object has no attribute 'suspendcapture' >______________________ test_fix_finalizer[session-thread] ______________________ >meth = 'thread', scope = 'session' >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer7')> > @pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) > @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) > def test_fix_finalizer(meth, scope, testdir): > testdir.makepyfile(""" > import time, pytest > > class TestFoo: > > @pytest.fixture(scope='{scope}') > def fix(self, request): > print('fix setup') > def fin(): > print('fix finaliser') > time.sleep(2) > request.addfinalizer(fin) > > def test_foo(self, fix): > pass > """.format(scope=scope)) > result = testdir.runpytest('--timeout=1', '-s', > '--timeout_method={0}'.format(meth)) > assert result.ret > 0 >> assert 'Timeout' in result.stdout.str() + result.stderr.str() >E assert 'Timeout' in ('============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' + 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'') >E + where '============================= test session starts ==============================\nplatform linux2 -- Python 2.7.15, py...:\nplugins: timeout-1.2.0\ntimeout: 1.0s method: thread\ncollected 1 item\n\ntest_fix_finalizer.py fix setup\n.fix finaliser' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7170>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7170>> = <_pytest.pytester.LineMatcher object at 0xb5ef7170>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ef7170> = <_pytest.pytester.RunResult object at 0xb5ef7050>.stdout >E + and 'Traceback (most recent call last):\n File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/li...ut, stderr = capman.suspendcapture(item)\nAttributeError: \'CaptureManager\' object has no attribute \'suspendcapture\'' = <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7ab0>>() >E + where <bound method LineMatcher.str of <_pytest.pytester.LineMatcher object at 0xb5ef7ab0>> = <_pytest.pytester.LineMatcher object at 0xb5ef7ab0>.str >E + where <_pytest.pytester.LineMatcher object at 0xb5ef7ab0> = <_pytest.pytester.RunResult object at 0xb5ef7050>.stderr >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:137: AssertionError >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer7/runpytest-0 --timeout=1 -s --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer7 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_fix_finalizer7, inifile: >plugins: timeout-1.2.0 >timeout: 1.0s method: thread >collected 1 item >test_fix_finalizer.py fix setup >.fix finaliser >----------------------------- Captured stderr call ----------------------------- >Traceback (most recent call last): > File "/builddir/build/BUILDROOT/python-pytest-timeout-1.2.0-4.fc29.noarch/usr/lib/python2.7/site-packages/pytest_timeout.py", line 257, in timeout_timer > stdout, stderr = capman.suspendcapture(item) >AttributeError: 'CaptureManager' object has no attribute 'suspendcapture' >___________________________ test_timeout_mark_timer ____________________________ >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_timer0')> > def test_timeout_mark_timer(testdir): > testdir.makepyfile(""" > import time, pytest > > @pytest.mark.timeout(1) > def test_foo(): > time.sleep(2) > """) > result = testdir.runpytest('--timeout_method=thread') >> result.stderr.fnmatch_lines(['*++ Timeout ++*']) >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:163: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.pytester.LineMatcher object at 0xb5f1c890> >lines2 = ['*++ Timeout ++*'] > def fnmatch_lines(self, lines2): > """Search captured text for matching lines using ``fnmatch.fnmatch``. > > The argument is a list of lines which have to match and can use glob > wildcards. If they do not match a pytest.fail() is called. The > matches and non-matches are also printed on stdout. > > """ >> self._match_lines(lines2, fnmatch, "fnmatch") >E Failed: remains unmatched: '*++ Timeout ++*' >/usr/lib/python2.7/site-packages/_pytest/pytester.py:1223: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_timer0/runpytest-0 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_timer0 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_timer0, inifile: >plugins: timeout-1.2.0 >collected 1 item >test_timeout_mark_timer.py >__________________________ test_timeout_mark_non_int ___________________________ >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_non_int0')> > def test_timeout_mark_non_int(testdir): > testdir.makepyfile(""" > import time, pytest > > @pytest.mark.timeout(0.5) > def test_foo(): > time.sleep(1) > """) > result = testdir.runpytest('--timeout_method=thread') >> result.stderr.fnmatch_lines(['*++ Timeout ++*']) >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:175: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.pytester.LineMatcher object at 0xb5e7ff70> >lines2 = ['*++ Timeout ++*'] > def fnmatch_lines(self, lines2): > """Search captured text for matching lines using ``fnmatch.fnmatch``. > > The argument is a list of lines which have to match and can use glob > wildcards. If they do not match a pytest.fail() is called. The > matches and non-matches are also printed on stdout. > > """ >> self._match_lines(lines2, fnmatch, "fnmatch") >E Failed: remains unmatched: '*++ Timeout ++*' >/usr/lib/python2.7/site-packages/_pytest/pytester.py:1223: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_non_int0/runpytest-0 --timeout_method=thread > in: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_non_int0 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_non_int0, inifile: >plugins: timeout-1.2.0 >collected 1 item >test_timeout_mark_non_int.py >________________________ test_timeout_mark_method_nokw _________________________ >testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_method_nokw0')> > def test_timeout_mark_method_nokw(testdir): > testdir.makepyfile(""" > import time, pytest > > @pytest.mark.timeout(1, 'thread') > def test_foo(): > time.sleep(2) > """) > result = testdir.runpytest() >> result.stderr.fnmatch_lines(['*+ Timeout +*']) >/builddir/build/BUILD/pytest-timeout-1.2.0/test_pytest_timeout.py:211: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >self = <_pytest.pytester.LineMatcher object at 0xb5f76690> >lines2 = ['*+ Timeout +*'] > def fnmatch_lines(self, lines2): > """Search captured text for matching lines using ``fnmatch.fnmatch``. > > The argument is a list of lines which have to match and can use glob > wildcards. If they do not match a pytest.fail() is called. The > matches and non-matches are also printed on stdout. > > """ >> self._match_lines(lines2, fnmatch, "fnmatch") >E Failed: remains unmatched: '*+ Timeout +*' >/usr/lib/python2.7/site-packages/_pytest/pytester.py:1223: Failed >----------------------------- Captured stdout call ----------------------------- >running: /usr/bin/python2 /usr/lib/python2.7/site-packages/pytest.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_method_nokw0/runpytest-0 > in: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_method_nokw0 >============================= test session starts ============================== >platform linux2 -- Python 2.7.15, pytest-3.6.1, py-1.5.3, pluggy-0.6.0 >rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_timeout_mark_method_nokw0, inifile: >plugins: timeout-1.2.0 >collected 1 item >test_timeout_mark_method_nokw.py >=========================== short test summary info ============================ >FAIL test_pytest_timeout.py::test_thread >FAIL test_pytest_timeout.py::test_fix_setup[function-thread] >FAIL test_pytest_timeout.py::test_fix_setup[class-thread] >FAIL test_pytest_timeout.py::test_fix_setup[module-thread] >FAIL test_pytest_timeout.py::test_fix_setup[session-thread] >FAIL test_pytest_timeout.py::test_fix_finalizer[function-thread] >FAIL test_pytest_timeout.py::test_fix_finalizer[class-thread] >FAIL test_pytest_timeout.py::test_fix_finalizer[module-thread] >FAIL test_pytest_timeout.py::test_fix_finalizer[session-thread] >FAIL test_pytest_timeout.py::test_timeout_mark_timer >FAIL test_pytest_timeout.py::test_timeout_mark_non_int >FAIL test_pytest_timeout.py::test_timeout_mark_method_nokw >==================== 12 failed, 19 passed in 66.12 seconds ===================== >RPM build errors: >error: Bad exit status from /var/tmp/rpm-tmp.IsKciB (%check) > Bad exit status from /var/tmp/rpm-tmp.IsKciB (%check) >Child return code was: 1 >EXCEPTION: [Error()] >Traceback (most recent call last): > File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace > result = func(*args, **kw) > File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 582, in do > raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) >mockbuild.exception.Error: Command failed. See logs for output. > # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-pytest-timeout.spec
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1590256
: 1450411