File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def repr_failure(self, excinfo):
111
111
message = excinfo .type .__name__
112
112
reprlocation = ReprFileLocation (filename , lineno , message )
113
113
checker = _get_checker ()
114
- REPORT_UDIFF = _get_report_choice (self .config .getoption ("doctestreport" ))
114
+ report_choice = _get_report_choice (self .config .getoption ("doctestreport" ))
115
115
if lineno is not None :
116
116
lines = doctestfailure .test .docstring .splitlines (False )
117
117
# add line numbers to the left of the error message
@@ -127,7 +127,7 @@ def repr_failure(self, excinfo):
127
127
indent = '...'
128
128
if excinfo .errisinstance (doctest .DocTestFailure ):
129
129
lines += checker .output_difference (example ,
130
- doctestfailure .got , REPORT_UDIFF ).split ("\n " )
130
+ doctestfailure .got , report_choice ).split ("\n " )
131
131
else :
132
132
inner_excinfo = ExceptionInfo (excinfo .value .exc_info )
133
133
lines += ["UNEXPECTED EXCEPTION: %s" %
You can’t perform that action at this time.
0 commit comments