diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 21:26:36 +0200 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-18 21:26:36 +0200 |
commit | 40929f315c0bb0f7feb4a5204bafa9f6dd7160f7 (patch) | |
tree | 4d149e48aa45aebc236f60d7580bcae869237e58 /Lib/test/test_sax.py | |
parent | 7338e256fa0a303ebdfe7fe0ef65570636483918 (diff) | |
parent | 6608ad78ccc19c44905a3fecd14508c5c6340741 (diff) | |
download | cpython-40929f315c0bb0f7feb4a5204bafa9f6dd7160f7.tar.gz |
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r-- | Lib/test/test_sax.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index d6ed6db942..7bb30cd1d2 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -20,8 +20,8 @@ import unittest TEST_XMLFILE = findfile("test.xml", subdir="xmltestdata") TEST_XMLFILE_OUT = findfile("test.xml.out", subdir="xmltestdata") try: - TEST_XMLFILE.encode("utf8") - TEST_XMLFILE_OUT.encode("utf8") + TEST_XMLFILE.encode("utf-8") + TEST_XMLFILE_OUT.encode("utf-8") except UnicodeEncodeError: raise unittest.SkipTest("filename is not encodable to utf8") |