summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-10-12 11:44:10 -0400
committerBenjamin Peterson <benjamin@python.org>2012-10-12 11:44:10 -0400
commitc163ab9fd2bb39ae9f6c230b55851060bf7d4d71 (patch)
tree182f959e4436d87f5a7fd40a98cca3eed101ab3e
parent2aedfe8623d12adcf20222b0eb0be410df851f68 (diff)
downloadcpython-c163ab9fd2bb39ae9f6c230b55851060bf7d4d71.tar.gz
fix to work if __doc__ is removed
-rw-r--r--Lib/test/test_runpy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
index 6e9c4fc23e..96d2bebbc4 100644
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -523,10 +523,10 @@ class RunPathTestCase(unittest.TestCase, CodeExecutionMixin):
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():