From 48b8620ccab8633137c4078bc389f35e73f901bb Mon Sep 17 00:00:00 2001 From: Oliver Bestwalter Date: Fri, 15 Dec 2017 10:51:29 +0100 Subject: [PATCH] not reproducing https://github.com/tox-dev/tox/issues/426 yet ... --- setup.py | 5 +-- test_file.py | 3 ++ tox.ini | 20 +++-------- tox.log | 99 +++++++++++++++++++++++++++++++++++++++++++--------- 4 files changed, 90 insertions(+), 37 deletions(-) create mode 100644 test_file.py diff --git a/setup.py b/setup.py index 3652767..8b42208 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,3 @@ from setuptools import setup -setup( - name='testpackage', - version='0.1.0.dev0', -) +setup(name='tox-426') diff --git a/test_file.py b/test_file.py new file mode 100644 index 0000000..05e52cf --- /dev/null +++ b/test_file.py @@ -0,0 +1,3 @@ +def test_crash(): + print("whatever") + assert 0 diff --git a/tox.ini b/tox.ini index 5955446..91d3d3f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,6 @@ [tox] -skipsdist = True -envlist = usedevelop,skip_install,both +envlist = py27, py36, lint, pylint -[testenv:usedevelop] -skip_install = False -usedevelop = True -commands = pip freeze - -[testenv:skip_install] -skip_install = True -usedevelop = False -commands = pip freeze - -[testenv:both] -skip_install = True -usedevelop = True -commands = pip freeze +[testenv] +deps = pytest +commands = pytest diff --git a/tox.log b/tox.log index 21f31a7..7899731 100644 --- a/tox.log +++ b/tox.log @@ -1,18 +1,83 @@ -usedevelop develop-inst-nodeps: /home/oliver/work/tox/tox-reproducers -usedevelop installed: -e git+git@github.com:obestwalter/tox-reproducers.git@048f5f3e745214fdc1d49857ffec31ec20568156#egg=testpackage -usedevelop runtests: PYTHONHASHSEED='2874166107' -usedevelop runtests: commands[0] | pip freeze --e git+git@github.com:obestwalter/tox-reproducers.git@048f5f3e745214fdc1d49857ffec31ec20568156#egg=testpackage -skip_install installed: -skip_install runtests: PYTHONHASHSEED='2874166107' -skip_install runtests: commands[0] | pip freeze -both develop-inst-nodeps: /home/oliver/work/tox/tox-reproducers -both installed: -e git+git@github.com:obestwalter/tox-reproducers.git@048f5f3e745214fdc1d49857ffec31ec20568156#egg=testpackage -both runtests: PYTHONHASHSEED='2874166107' -both runtests: commands[0] | pip freeze --e git+git@github.com:obestwalter/tox-reproducers.git@048f5f3e745214fdc1d49857ffec31ec20568156#egg=testpackage +GLOB sdist-make: /home/oliver/work/tox/tox-reproducers/setup.py +py27 create: /home/oliver/work/tox/tox-reproducers/.tox/py27 +py27 installdeps: pytest +py27 inst: /home/oliver/work/tox/tox-reproducers/.tox/dist/tox-426-0.0.0.zip +py27 installed: attrs==17.3.0,funcsigs==1.0.2,pluggy==0.6.0,py==1.5.2,pytest==3.3.1,six==1.11.0,tox-426==0.0.0 +py27 runtests: PYTHONHASHSEED='4137737740' +py27 runtests: commands[0] | pytest +============================= test session starts ============================== +platform linux2 -- Python 2.7.14, pytest-3.3.1, py-1.5.2, pluggy-0.6.0 +rootdir: /home/oliver/work/tox/tox-reproducers, inifile: +collected 1 item + +test_file.py F [100%] + +=================================== FAILURES =================================== +__________________________________ test_crash __________________________________ + + def test_crash(): + print("whatever") +> assert 0 +E assert 0 + +test_file.py:3: AssertionError +----------------------------- Captured stdout call ----------------------------- +whatever +=========================== 1 failed in 0.02 seconds =========================== +ERROR: InvocationError: '/home/oliver/work/tox/tox-reproducers/.tox/py27/bin/pytest' +py36 create: /home/oliver/work/tox/tox-reproducers/.tox/py36 +py36 installdeps: pytest +py36 inst: /home/oliver/work/tox/tox-reproducers/.tox/dist/tox-426-0.0.0.zip +py36 installed: attrs==17.3.0,pluggy==0.6.0,py==1.5.2,pytest==3.3.1,six==1.11.0,tox-426==0.0.0 +py36 runtests: PYTHONHASHSEED='4137737740' +py36 runtests: commands[0] | pytest +============================= test session starts ============================== +platform linux -- Python 3.6.3, pytest-3.3.1, py-1.5.2, pluggy-0.6.0 +rootdir: /home/oliver/work/tox/tox-reproducers, inifile: +collected 1 item + +test_file.py F [100%] + +=================================== FAILURES =================================== +__________________________________ test_crash __________________________________ + + def test_crash(): + print("whatever") +> assert 0 +E assert 0 + +test_file.py:3: AssertionError +----------------------------- Captured stdout call ----------------------------- +whatever +=========================== 1 failed in 0.02 seconds =========================== +ERROR: InvocationError: '/home/oliver/work/tox/tox-reproducers/.tox/py36/bin/pytest' +lint create: /home/oliver/work/tox/tox-reproducers/.tox/lint +lint installdeps: pytest +lint inst: /home/oliver/work/tox/tox-reproducers/.tox/dist/tox-426-0.0.0.zip +lint installed: attrs==17.3.0,pluggy==0.6.0,py==1.5.2,pytest==3.3.1,six==1.11.0,tox-426==0.0.0 +lint runtests: PYTHONHASHSEED='4137737740' +lint runtests: commands[0] | pytest +============================= test session starts ============================== +platform linux -- Python 3.6.3, pytest-3.3.1, py-1.5.2, pluggy-0.6.0 +rootdir: /home/oliver/work/tox/tox-reproducers, inifile: +collected 1 item + +test_file.py F [100%] + +=================================== FAILURES =================================== +__________________________________ test_crash __________________________________ + + def test_crash(): + print("whatever") +> assert 0 +E assert 0 + +test_file.py:3: AssertionError +----------------------------- Captured stdout call ----------------------------- +whatever +=========================== 1 failed in 0.02 seconds =========================== +ERROR: InvocationError: '/home/oliver/work/tox/tox-reproducers/.tox/lint/bin/pytest' ___________________________________ summary ____________________________________ - usedevelop: commands succeeded - skip_install: commands succeeded - both: commands succeeded - congratulations :) +ERROR: py27: commands failed +ERROR: py36: commands failed +ERROR: lint: commands failed