From: Benjamin Peterson Date: Fri, 12 Oct 2012 15:44:10 +0000 (-0400) Subject: fix to work if __doc__ is removed X-Git-Tag: v3.3.1rc1~804^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=951a9e381bd3603ac628dfd519da091d605338b3;p=python fix to work if __doc__ is removed --- diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py index 6e9c4fc23e..96d2bebbc4 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():