merge main
This commit is contained in:
commit
8e4e2ba244
1
AUTHORS
1
AUTHORS
|
@ -40,3 +40,4 @@ Piotr Banaszkiewicz
|
||||||
Jurko Gospodnetić
|
Jurko Gospodnetić
|
||||||
Marc Schlaich
|
Marc Schlaich
|
||||||
Christopher Gilling
|
Christopher Gilling
|
||||||
|
Daniel Grana
|
||||||
|
|
|
@ -26,11 +26,12 @@ NEXT (2.6)
|
||||||
- fix issue412: messing with stdout/stderr FD-level streams is now
|
- fix issue412: messing with stdout/stderr FD-level streams is now
|
||||||
captured without crashes.
|
captured without crashes.
|
||||||
|
|
||||||
|
- fix issue483: trial/py33 works now properly. Thanks Daniel Grana for PR.
|
||||||
|
|
||||||
- simplified internal capturing mechanism and made it more robust
|
- simplified internal capturing mechanism and made it more robust
|
||||||
against tests or setups changing FD1/FD2, also better integrated
|
against tests or setups changing FD1/FD2, also better integrated
|
||||||
now with pytest.pdb() in single tests.
|
now with pytest.pdb() in single tests.
|
||||||
|
|
||||||
|
|
||||||
2.5.2
|
2.5.2
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ def pytest_runtest_protocol(item, __multicall__):
|
||||||
if isinstance(item, TestCaseFunction):
|
if isinstance(item, TestCaseFunction):
|
||||||
if 'twisted.trial.unittest' in sys.modules:
|
if 'twisted.trial.unittest' in sys.modules:
|
||||||
ut = sys.modules['twisted.python.failure']
|
ut = sys.modules['twisted.python.failure']
|
||||||
Failure__init__ = ut.Failure.__init__.im_func
|
Failure__init__ = ut.Failure.__init__
|
||||||
check_testcase_implements_trial_reporter()
|
check_testcase_implements_trial_reporter()
|
||||||
def excstore(self, exc_value=None, exc_type=None, exc_tb=None,
|
def excstore(self, exc_value=None, exc_type=None, exc_tb=None,
|
||||||
captureVars=None):
|
captureVars=None):
|
||||||
|
|
16
tox.ini
16
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
distshare={homedir}/.tox/distshare
|
distshare={homedir}/.tox/distshare
|
||||||
envlist=flakes,py26,py27,pypy,py27-pexpect,py33-pexpect,py27-nobyte,py32,py33,py27-xdist,py33-xdist,trial
|
envlist=flakes,py26,py27,pypy,py27-pexpect,py33-pexpect,py27-nobyte,py32,py33,py27-xdist,py33-xdist,py27-trial,py33-trial
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
changedir=testing
|
changedir=testing
|
||||||
|
@ -45,7 +45,7 @@ commands=
|
||||||
|
|
||||||
[testenv:py33-pexpect]
|
[testenv:py33-pexpect]
|
||||||
changedir=testing
|
changedir=testing
|
||||||
basepython=python2.7
|
basepython=python3.3
|
||||||
deps={[testenv:py27-pexpect]deps}
|
deps={[testenv:py27-pexpect]deps}
|
||||||
commands=
|
commands=
|
||||||
py.test -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
py.test -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
||||||
|
@ -61,12 +61,22 @@ commands=
|
||||||
py.test -n3 -rfsxX \
|
py.test -n3 -rfsxX \
|
||||||
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
||||||
|
|
||||||
[testenv:trial]
|
[testenv:py27-trial]
|
||||||
changedir=.
|
changedir=.
|
||||||
|
basepython=python2.7
|
||||||
deps=twisted
|
deps=twisted
|
||||||
commands=
|
commands=
|
||||||
py.test -rsxf \
|
py.test -rsxf \
|
||||||
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing/test_unittest.py}
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing/test_unittest.py}
|
||||||
|
|
||||||
|
[testenv:py33-trial]
|
||||||
|
changedir=.
|
||||||
|
basepython=python3.3
|
||||||
|
deps={[testenv:py27-trial]deps}
|
||||||
|
commands=
|
||||||
|
py.test -rsxf \
|
||||||
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing/test_unittest.py}
|
||||||
|
|
||||||
[testenv:doctest]
|
[testenv:doctest]
|
||||||
changedir=.
|
changedir=.
|
||||||
commands=py.test --doctest-modules _pytest
|
commands=py.test --doctest-modules _pytest
|
||||||
|
|
Loading…
Reference in New Issue