Skip to content

Commit c67a5da

Browse files
committed
Workaround for pytest-dev/pytest#1133
It seems that inside the tox environment `entry.path` points to the local "pytestqt/logging.py" file (importable from $CWD). Changing the current directory to "tests" during the tox run worksaround this problem.
1 parent 27a1aaa commit c67a5da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ envlist = py{27,34}-pyqt4, py34-pyqt5, py{26,27,33,34}-pyside, docs
66
[testenv]
77
deps=pytest
88
pyside: pyside
9+
changedir=tests
910
commands=
1011
pyqt5: {envpython} scripts/link_pyqt.py --tox {envdir} 5
1112
pyqt4: {envpython} scripts/link_pyqt.py --tox {envdir} 4

0 commit comments

Comments
 (0)