mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #9425: skip tests if a filename is not encodable
This commit is contained in:
parent
87c9d6cf9c
commit
6c6f851eae
6 changed files with 29 additions and 4 deletions
|
@ -18,6 +18,11 @@ 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")
|
||||
except UnicodeEncodeError:
|
||||
raise unittest.SkipTest("filename is not encodable to utf8")
|
||||
|
||||
ns_uri = "http://www.python.org/xml-ns/saxtest/"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue