summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-03-14 11:23:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-03-14 11:51:58 -0400
commit9bd3b482c94156df0477ee33d87cd876f7b629ce (patch)
tree9a33df47c1fff8d3fb902fd7d01ad024f2fe9a83 /tests
parent442e241718e20d22eefd9e02ac747bd2f0118dcc (diff)
downloadpython-coveragepy-git-nedbat/bug913.tar.gz
temp: a test for bug 913nedbat/bug913
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index b1611c1b..f0a2c02c 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -685,6 +685,17 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest):
assert cov.config.exclude_list == ["first", "✘weirdo", "third"]
assert cov.config.html_title == "tabblo & «ταБЬℓσ» # numbers"
+ def test_bug_913(self):
+ import sys
+ print("ENcoding: {}".format(sys.getdefaultencoding()))
+ self.make_file(".coveragerc", """\
+ [html]
+ # (string, default “htmlcov”): where to write the HTML report files.
+ directory = htmlcov
+ """)
+ cov = coverage.Coverage()
+ 1/0
+
def test_unreadable_config(self):
# If a config file is explicitly specified, then it is an error for it
# to not be readable.