Merge pull request #4438 from RonnyPfannschmidt/fix-4386-raises-partial-object

fix #4386 - restructure construction and partial state of ExceptionInfo
This commit is contained in:
Bruno Oliveira
2018-11-23 12:41:14 -02:00
committed by GitHub
12 changed files with 112 additions and 59 deletions

View File

@@ -164,7 +164,7 @@ def assertrepr_compare(config, op, left, right):
explanation = [
u"(pytest_assertion plugin: representation of details failed. "
u"Probably an object has a faulty __repr__.)",
six.text_type(_pytest._code.ExceptionInfo()),
six.text_type(_pytest._code.ExceptionInfo.from_current()),
]
if not explanation: