mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-7856: Fixed according to IDEA-CR-18091
This commit is contained in:
@@ -180,11 +180,7 @@ class DocTestRunner(doctest.DocTestRunner):
|
||||
self.result.startTest(example)
|
||||
err = self._failure_header(test, example) +\
|
||||
self._checker.output_difference(example, got, self.optionflags)
|
||||
expected = None
|
||||
try:
|
||||
expected = example.want
|
||||
except KeyError:
|
||||
pass
|
||||
expected = getattr(example, "want", None)
|
||||
self.result.addFailure(example, err, expected=expected, actual=got)
|
||||
|
||||
elif outcome is BOOM:
|
||||
|
||||
Reference in New Issue
Block a user