From: doko@ubuntu.com Date: Tue, 13 May 2014 09:28:12 +0000 (+0200) Subject: - Issue #17756: Fix test_code test when run from the installed location. X-Git-Tag: v3.5.0a1~1664^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15bec9cb3f317aa9e637735e5ea6061bd0e145c2;p=thirdparty%2FPython%2Fcpython.git - Issue #17756: Fix test_code test when run from the installed location. --- diff --git a/Lib/test/test_code_module.py b/Lib/test/test_code_module.py index 5fd21dc32c61..7a80a808b140 100644 --- a/Lib/test/test_code_module.py +++ b/Lib/test/test_code_module.py @@ -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") diff --git a/Misc/NEWS b/Misc/NEWS index b0b08cece914..72204aab022d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -32,6 +32,8 @@ Library Tests ----- +- Issue #17756: Fix test_code test when run from the installed location. + - Issue #17752: Fix distutils tests when run from the installed location. IDLE