Commit 951a9e38 authored by Benjamin Peterson's avatar Benjamin Peterson

fix to work if __doc__ is removed

parent 7fa82227
......@@ -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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment