[Python-checkins] cpython: fix to work if __doc__ is removed
benjamin.peterson
python-checkins at python.org
Fri Oct 12 17:44:25 CEST 2012
http://hg.python.org/cpython/rev/1a4f426eb712
changeset: 79696:1a4f426eb712
user: Benjamin Peterson <benjamin at python.org>
date: Fri Oct 12 11:44:10 2012 -0400
summary:
fix to work if __doc__ is removed
files:
Lib/test/test_runpy.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -565,10 +565,10 @@
with open(filename, 'w', encoding='latin1') as f:
f.write("""
#coding:latin1
-"non-ASCII: h\xe9"
+s = "non-ASCII: h\xe9"
""")
result = run_path(filename)
- self.assertEqual(result['__doc__'], "non-ASCII: h\xe9")
+ self.assertEqual(result['s'], "non-ASCII: h\xe9")
def test_main():
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list