Kaydet (Commit) fa5f75a7 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix to work if __doc__ is removed

üst fe1bcb64
...@@ -565,10 +565,10 @@ class RunPathTestCase(unittest.TestCase, CodeExecutionMixin): ...@@ -565,10 +565,10 @@ class RunPathTestCase(unittest.TestCase, CodeExecutionMixin):
with open(filename, 'w', encoding='latin1') as f: with open(filename, 'w', encoding='latin1') as f:
f.write(""" f.write("""
#coding:latin1 #coding:latin1
"non-ASCII: h\xe9" s = "non-ASCII: h\xe9"
""") """)
result = run_path(filename) result = run_path(filename)
self.assertEqual(result['__doc__'], "non-ASCII: h\xe9") self.assertEqual(result['s'], "non-ASCII: h\xe9")
def test_main(): 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