Created
September 15, 2015 14:01
-
-
Save montefra/878bfd839400e426b788 to your computer and use it in GitHub Desktop.
pytest-qt tox runs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GLOB sdist-make: /data01/montefra/Gitrepos/pytest-qt/setup.py | |
py27-pyqt4 inst-nodeps: /data01/montefra/Gitrepos/pytest-qt/.tox/dist/pytest-qt-1.6.0.zip | |
py27-pyqt4 installed: py==1.4.30,pytest==2.7.3,pytest-qt==1.6.0,wheel==0.24.0 | |
py27-pyqt4 runtests: PYTHONHASHSEED='897280812' | |
py27-pyqt4 runtests: commands[0] | /data01/montefra/Gitrepos/pytest-qt/.tox/py27-pyqt4/bin/python scripts/link_pyqt.py --tox /data01/montefra/Gitrepos/pytest-qt/.tox/py27-pyqt4 4 | |
py27-pyqt4 runtests: commands[1] | /data01/montefra/Gitrepos/pytest-qt/.tox/py27-pyqt4/bin/python -m pytest | |
====================================================================== test session starts ====================================================================== | |
platform linux2 -- Python 2.7.9 -- py-1.4.30 -- pytest-2.7.3 | |
PyQt4 4.11.3 -- Qt runtime 4.8.6 -- Qt compiled 4.8.6 | |
rootdir: /data01/montefra/Gitrepos/pytest-qt, inifile: | |
plugins: qt | |
collected 104 items | |
tests/test_basics.py ........ | |
tests/test_exceptions.py ....... | |
tests/test_logging.py .......................s | |
tests/test_qtest_proxies.py ......x...... | |
tests/test_wait_signal.py .................................................... | |
======================================================= 102 passed, 1 skipped, 1 xfailed in 14.15 seconds ======================================================= | |
py34-pyqt4 inst-nodeps: /data01/montefra/Gitrepos/pytest-qt/.tox/dist/pytest-qt-1.6.0.zip | |
py34-pyqt4 installed: py==1.4.30,pytest==2.7.3,pytest-qt==1.6.0,wheel==0.24.0 | |
py34-pyqt4 runtests: PYTHONHASHSEED='897280812' | |
py34-pyqt4 runtests: commands[0] | /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt4/bin/python scripts/link_pyqt.py --tox /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt4 4 | |
py34-pyqt4 runtests: commands[1] | /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt4/bin/python -m pytest | |
====================================================================== test session starts ====================================================================== | |
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3 | |
PyQt4 4.11.3 -- Qt runtime 4.8.6 -- Qt compiled 4.8.6 | |
rootdir: /data01/montefra/Gitrepos/pytest-qt, inifile: | |
plugins: qt | |
collected 104 items | |
tests/test_basics.py ........ | |
tests/test_exceptions.py ....... | |
tests/test_logging.py .......................s | |
tests/test_qtest_proxies.py ......x...... | |
tests/test_wait_signal.py .................................................... | |
======================================================= 102 passed, 1 skipped, 1 xfailed in 14.21 seconds ======================================================= | |
py34-pyqt5 create: /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5 | |
py34-pyqt5 installdeps: pytest | |
py34-pyqt5 inst: /data01/montefra/Gitrepos/pytest-qt/.tox/dist/pytest-qt-1.6.0.zip | |
py34-pyqt5 installed: py==1.4.30,pytest==2.7.3,pytest-qt==1.6.0,wheel==0.24.0 | |
py34-pyqt5 runtests: PYTHONHASHSEED='897280812' | |
py34-pyqt5 runtests: commands[0] | /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/bin/python scripts/link_pyqt.py --tox /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5 5 | |
/usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so -> /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/lib/python3.4/site-packages/sip.cpython-34m-x86_64-linux-gnu.so | |
/usr/lib/python3/dist-packages/sipconfig.py -> /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/lib/python3.4/site-packages/sipconfig.py | |
/usr/lib/python3/dist-packages/PyQt5 -> /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/lib/python3.4/site-packages/PyQt5 | |
py34-pyqt5 runtests: commands[1] | /data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/bin/python -m pytest | |
====================================================================== test session starts ====================================================================== | |
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3 | |
PyQt5 5.4.1 -- Qt runtime 5.4.1 -- Qt compiled 5.4.1 | |
rootdir: /data01/montefra/Gitrepos/pytest-qt, inifile: | |
plugins: qt | |
collected 104 items | |
tests/test_basics.py ........ | |
tests/test_exceptions.py ....... | |
tests/test_logging.py .......................F | |
tests/test_qtest_proxies.py ......x...... | |
tests/test_wait_signal.py .................................................... | |
=========================================================================== FAILURES ============================================================================ | |
_______________________________________________________________________ test_context_none _______________________________________________________________________ | |
testdir = <TmpTestdir local('/tmp/pytest-montefra/pytest-4/testdir/test_context_none0')> | |
@pytest.mark.skipif(QT_API != 'pyqt5', | |
reason='Context information only available in PyQt5') | |
def test_context_none(testdir): | |
""" | |
Sometimes PyQt5 will emit a context with some/all attributes set as None | |
instead of appropriate file, function and line number. | |
Test that when this happens the plugin doesn't break. | |
:type testdir: _pytest.pytester.TmpTestdir | |
""" | |
testdir.makepyfile( | |
""" | |
from pytestqt.qt_compat import QtWarningMsg | |
def test_foo(request): | |
log_capture = request.node.qt_log_capture | |
context = log_capture._Context(None, None, None) | |
log_capture._handle_with_context(QtWarningMsg, | |
context, "WARNING message") | |
assert 0 | |
""" | |
) | |
res = testdir.runpytest() | |
res.stdout.fnmatch_lines([ | |
'*Failure*', | |
> '*None:None:None:*', | |
]) | |
E Failed: remains unmatched: '*Failure*', see stderr | |
/data01/montefra/Gitrepos/pytest-qt/tests/test_logging.py:428: Failed | |
--------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------- | |
running ['/data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/bin/python', '/data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/lib/python3.4/site-packages/pytest.py', '--basetemp=/tmp/pytest-montefra/pytest-4/testdir/test_context_none0/runpytest-0'] curdir= /tmp/pytest-montefra/pytest-4/testdir/test_context_none0 | |
============================= test session starts ============================== | |
platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3 | |
PyQt5 5.4.1 -- Qt runtime 5.4.1 -- Qt compiled 5.4.1 | |
rootdir: /tmp/pytest-montefra/pytest-4/testdir/test_context_none0, inifile: | |
plugins: qt | |
collected 1 items | |
test_context_none.py F | |
=================================== FAILURES =================================== | |
___________________________________ test_foo ___________________________________ | |
request = <FixtureRequest for <Function 'test_foo'>> | |
def test_foo(request): | |
log_capture = request.node.qt_log_capture | |
context = log_capture._Context(None, None, None) | |
log_capture._handle_with_context(QtWarningMsg, | |
context, "WARNING message") | |
> assert 0 | |
E assert 0 | |
test_context_none.py:8: AssertionError | |
----------------------------- Captured Qt messages ----------------------------- | |
None:None:None: | |
QtWarningMsg: WARNING message | |
=========================== 1 failed in 0.01 seconds =========================== | |
--------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------- | |
nomatch: '*Failure*' | |
and: '============================= test session starts ==============================' | |
and: 'platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.3' | |
and: 'PyQt5 5.4.1 -- Qt runtime 5.4.1 -- Qt compiled 5.4.1' | |
and: 'rootdir: /tmp/pytest-montefra/pytest-4/testdir/test_context_none0, inifile: ' | |
and: 'plugins: qt' | |
and: 'collected 1 items' | |
and: '' | |
and: 'test_context_none.py F' | |
and: '' | |
and: '=================================== FAILURES ===================================' | |
and: '___________________________________ test_foo ___________________________________' | |
and: '' | |
and: "request = <FixtureRequest for <Function 'test_foo'>>" | |
and: '' | |
and: ' def test_foo(request):' | |
and: ' log_capture = request.node.qt_log_capture' | |
and: ' context = log_capture._Context(None, None, None)' | |
and: ' log_capture._handle_with_context(QtWarningMsg,' | |
and: ' context, "WARNING message")' | |
and: '> assert 0' | |
and: 'E assert 0' | |
and: '' | |
and: 'test_context_none.py:8: AssertionError' | |
and: '----------------------------- Captured Qt messages -----------------------------' | |
and: 'None:None:None:' | |
and: ' QtWarningMsg: WARNING message' | |
and: '=========================== 1 failed in 0.01 seconds ===========================' | |
======================================================= 1 failed, 102 passed, 1 xfailed in 19.36 seconds ======================================================== | |
ERROR: InvocationError: '/data01/montefra/Gitrepos/pytest-qt/.tox/py34-pyqt5/bin/python -m pytest' | |
py26-pyside create: /data01/montefra/Gitrepos/pytest-qt/.tox/py26-pyside | |
ERROR: InterpreterNotFound: python2.6 | |
py27-pyside create: /data01/montefra/Gitrepos/pytest-qt/.tox/py27-pyside | |
py27-pyside installdeps: pytest, pyside |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment