summaryrefslogtreecommitdiff
path: root/Lib/test/test_sax.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:26:36 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:26:36 +0200
commit40929f315c0bb0f7feb4a5204bafa9f6dd7160f7 (patch)
tree4d149e48aa45aebc236f60d7580bcae869237e58 /Lib/test/test_sax.py
parent7338e256fa0a303ebdfe7fe0ef65570636483918 (diff)
parent6608ad78ccc19c44905a3fecd14508c5c6340741 (diff)
downloadcpython-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.py4
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")