diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-12 15:44:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-12 15:44:10 (GMT) |
commit | 951a9e381bd3603ac628dfd519da091d605338b3 (patch) | |
tree | dd39ef50e81d147a905e7e232dd6681fd203d39d /Lib/test | |
parent | 7fa822275bb9744440f1636345319feaf1669126 (diff) | |
download | cpython-951a9e381bd3603ac628dfd519da091d605338b3.zip cpython-951a9e381bd3603ac628dfd519da091d605338b3.tar.gz cpython-951a9e381bd3603ac628dfd519da091d605338b3.tar.bz2 |
fix to work if __doc__ is removed
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_runpy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py index 6e9c4fc..96d2beb 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(): |