Skip to content

Commit 94731fc

Browse files
committed
Changes variable name so it better describes what it does now.
1 parent 51fa244 commit 94731fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_pytest/doctest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def repr_failure(self, excinfo):
111111
message = excinfo.type.__name__
112112
reprlocation = ReprFileLocation(filename, lineno, message)
113113
checker = _get_checker()
114-
REPORT_UDIFF = _get_report_choice(self.config.getoption("doctestreport"))
114+
report_choice = _get_report_choice(self.config.getoption("doctestreport"))
115115
if lineno is not None:
116116
lines = doctestfailure.test.docstring.splitlines(False)
117117
# add line numbers to the left of the error message
@@ -127,7 +127,7 @@ def repr_failure(self, excinfo):
127127
indent = '...'
128128
if excinfo.errisinstance(doctest.DocTestFailure):
129129
lines += checker.output_difference(example,
130-
doctestfailure.got, REPORT_UDIFF).split("\n")
130+
doctestfailure.got, report_choice).split("\n")
131131
else:
132132
inner_excinfo = ExceptionInfo(excinfo.value.exc_info)
133133
lines += ["UNEXPECTED EXCEPTION: %s" %

0 commit comments

Comments
 (0)