fix compat with testcases from trial-11.1.0
This commit is contained in:
parent
a5e7b2760d
commit
58e0301f87
|
@ -28,6 +28,7 @@ Changes between 2.1.3 and XXX 2.2.0
|
||||||
- fix and cleanup pytest's own test suite to not leak FDs
|
- fix and cleanup pytest's own test suite to not leak FDs
|
||||||
- fix issue83: link to generated funcarg list
|
- fix issue83: link to generated funcarg list
|
||||||
- fix issue74: pyarg module names are now checked against imp.find_module false positives
|
- fix issue74: pyarg module names are now checked against imp.find_module false positives
|
||||||
|
- fix compatibility with twisted/trial-11.1.0 use cases
|
||||||
|
|
||||||
Changes between 2.1.2 and 2.1.3
|
Changes between 2.1.2 and 2.1.3
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
|
@ -120,13 +120,18 @@ def pytest_runtest_protocol(item, __multicall__):
|
||||||
ut = sys.modules['twisted.python.failure']
|
ut = sys.modules['twisted.python.failure']
|
||||||
Failure__init__ = ut.Failure.__init__.im_func
|
Failure__init__ = ut.Failure.__init__.im_func
|
||||||
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):
|
||||||
if exc_value is None:
|
if exc_value is None:
|
||||||
self._rawexcinfo = sys.exc_info()
|
self._rawexcinfo = sys.exc_info()
|
||||||
else:
|
else:
|
||||||
if exc_type is None:
|
if exc_type is None:
|
||||||
exc_type = type(exc_value)
|
exc_type = type(exc_value)
|
||||||
self._rawexcinfo = (exc_type, exc_value, exc_tb)
|
self._rawexcinfo = (exc_type, exc_value, exc_tb)
|
||||||
|
try:
|
||||||
|
Failure__init__(self, exc_value, exc_type, exc_tb,
|
||||||
|
captureVars=captureVars)
|
||||||
|
except TypeError:
|
||||||
Failure__init__(self, exc_value, exc_type, exc_tb)
|
Failure__init__(self, exc_value, exc_type, exc_tb)
|
||||||
ut.Failure.__init__ = excstore
|
ut.Failure.__init__ = excstore
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue