Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_normalization.py @ 43089:2e3c02c625de
Explicitly use UTF-8 as the encoding for the normalization file.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 30 Aug 2007 20:58:02 +0000 |
| parents | 4d2aa4bfb2d6 |
| children | 9c930a32cebb |
line wrap: on
line diff
--- a/Lib/test/test_normalization.py Thu Aug 30 20:51:49 2007 +0000 +++ b/Lib/test/test_normalization.py Thu Aug 30 20:58:02 2007 +0000 @@ -33,7 +33,7 @@ class NormalizationTest(unittest.TestCase): def test_main(self): part1_data = {} - for line in open_urlresource(TESTDATAURL): + for line in open_urlresource(TESTDATAURL, encoding="utf-8"): if '#' in line: line = line.split('#')[0] line = line.strip()
