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 | fa5f75a7ceac6c40b72484b73dfa2e7434a2c1a8 (patch) | |
| tree | 845446161bbc0fdc0074606c2514827eb4acdf84 | |
| parent | fe1bcb64cd2e00dcb0d1fc77f627cb538510efa6 (diff) | |
| download | cpython-fa5f75a7ceac6c40b72484b73dfa2e7434a2c1a8.zip cpython-fa5f75a7ceac6c40b72484b73dfa2e7434a2c1a8.tar.gz cpython-fa5f75a7ceac6c40b72484b73dfa2e7434a2c1a8.tar.bz2 | |
fix to work if __doc__ is removed
| -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 8b443f6..fefefc4 100644 --- a/Lib/test/test_runpy.py +++ b/Lib/test/test_runpy.py @@ -565,10 +565,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(): |
