Merge from 3.4:
- Issue #17756: Fix test_code test when run from the installed location.
This commit is contained in:
commit
987831c945
|
@ -51,7 +51,7 @@ class TestInteractiveConsole(unittest.TestCase):
|
|||
self.infunc.side_effect = ["undefined", EOFError('Finished')]
|
||||
self.console.interact()
|
||||
for call in self.stderr.method_calls:
|
||||
if 'NameError:' in ''.join(call[1]):
|
||||
if 'NameError' in ''.join(call[1]):
|
||||
break
|
||||
else:
|
||||
raise AssertionError("No syntax error from console")
|
||||
|
|
Loading…
Reference in New Issue