]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Issue #17756: Fix test_code test when run from the installed location.
authordoko@ubuntu.com <doko@ubuntu.com>
Tue, 13 May 2014 09:28:12 +0000 (11:28 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Tue, 13 May 2014 09:28:12 +0000 (11:28 +0200)
Lib/test/test_code_module.py
Misc/NEWS

index 5fd21dc32c61872d13e4b820945d207ba27bc465..7a80a808b140f10d51daf505c7af267da4258a91 100644 (file)
@@ -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")
index b0b08cece914dcf0ef9355c62d364daf49d0d9e2..72204aab022d884df14ec2e9708c79dcb6cf3bc3 100644 (file)
--- 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