[Python-checkins] cpython (3.4): - Issue #17756: Fix test_code test when run from the installed location.
matthias.klose
python-checkins at python.org
Tue May 13 11:30:45 CEST 2014
http://hg.python.org/cpython/rev/20db5e9086d4
changeset: 90685:20db5e9086d4
branch: 3.4
parent: 90680:f67cf5747a26
user: doko at ubuntu.com
date: Tue May 13 11:28:12 2014 +0200
summary:
- Issue #17756: Fix test_code test when run from the installed location.
files:
Lib/test/test_code_module.py | 2 +-
Misc/NEWS | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_code_module.py b/Lib/test/test_code_module.py
--- a/Lib/test/test_code_module.py
+++ b/Lib/test/test_code_module.py
@@ -51,7 +51,7 @@
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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -32,6 +32,8 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list