Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_coding.py @ 42574:4bce94d9ec31
Fix a test failure on non-UTF-8 locales: bad_coding2.py is encoded
in utf-8.
| author | Hye-Shik Chang <hyeshik@gmail.com> |
|---|---|
| date | Mon, 13 Aug 2007 13:11:39 +0000 |
| parents | e0f62286a9a4 |
| children | 1739869cbc6e |
line wrap: on
line diff
--- a/Lib/test/test_coding.py Mon Aug 13 09:05:16 2007 +0000 +++ b/Lib/test/test_coding.py Mon Aug 13 13:11:39 2007 +0000 @@ -16,7 +16,7 @@ path = os.path.dirname(__file__) filename = os.path.join(path, module_name + '.py') - fp = open(filename) + fp = open(filename, encoding='utf-8') text = fp.read() fp.close() self.assertRaises(SyntaxError, compile, text, filename, 'exec')
