mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
fix to work if __doc__ is removed
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user