mirror of
https://github.com/python/cpython.git
synced 2025-11-12 03:22:06 +00:00
fix to work if __doc__ is removed
This commit is contained in:
parent
fe1bcb64cd
commit
fa5f75a7ce
1 changed files with 2 additions and 2 deletions
|
|
@ -565,10 +565,10 @@ def test_encoding(self):
|
||||||
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():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue