diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-04-30 08:20:19 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-04-30 08:20:19 -0400 |
commit | 1ad37dcc0e3927175f3988b5116654c32450aefc (patch) | |
tree | 84b128b2eb468b068beedb392fb7b6569890ca9a /tests/test_xml.py | |
parent | a1f99a47253220988587897f35e518bcf6372df9 (diff) | |
download | python-coveragepy-1ad37dcc0e3927175f3988b5116654c32450aefc.tar.gz |
Fix: xml report fails in non-ascii directory. #573
Diffstat (limited to 'tests/test_xml.py')
-rw-r--r-- | tests/test_xml.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_xml.py b/tests/test_xml.py index b59f873..c3493e7 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -1,3 +1,4 @@ +# coding: utf-8 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt @@ -186,6 +187,14 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): xml ) + def test_nonascii_directory(self): + # https://bitbucket.org/ned/coveragepy/issues/573/cant-generate-xml-report-if-some-source + self.make_file("테스트/program.py", "a = 1") + with change_dir("테스트"): + cov = coverage.Coverage() + self.start_import_stop(cov, "program") + cov.xml_report() + class XmlPackageStructureTest(XmlTestHelpers, CoverageTest): """Tests about the package structure reported in the coverage.xml file.""" |