diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-14 11:23:26 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-03-14 11:51:58 -0400 |
commit | 9bd3b482c94156df0477ee33d87cd876f7b629ce (patch) | |
tree | 9a33df47c1fff8d3fb902fd7d01ad024f2fe9a83 | |
parent | 442e241718e20d22eefd9e02ac747bd2f0118dcc (diff) | |
download | python-coveragepy-git-nedbat/bug913.tar.gz |
temp: a test for bug 913nedbat/bug913
-rw-r--r-- | .github/workflows/testsuite.yml | 24 | ||||
-rw-r--r-- | tests/test_config.py | 11 |
2 files changed, 23 insertions, 12 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index ee304af1..28376abf 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -29,13 +29,13 @@ jobs: # When changing this list, be sure to check the [gh-actions] list in # tox.ini so that tox will run properly. - "2.7" - - "3.5" - - "3.6" - - "3.7" - - "3.8" + #- "3.5" + #- "3.6" + #- "3.7" + #- "3.8" - "3.9" - - "3.10.0-alpha.6" - - "pypy3" + #- "3.10.0-alpha.6" + #- "pypy3" exclude: # Windows PyPy doesn't seem to work? - os: windows-latest @@ -70,13 +70,13 @@ jobs: continue-on-error: true id: tox1 run: | - python -m tox -- -rfeXs + python -m tox -- -rfeXs -k config - - name: "Retry tox for ${{ matrix.python-version }}" - id: tox2 - if: steps.tox1.outcome == 'failure' - run: | - python -m tox -- -rfeXs + #- name: "Retry tox for ${{ matrix.python-version }}" + # id: tox2 + # if: steps.tox1.outcome == 'failure' + # run: | + # python -m tox -- -rfeXs -k config - name: "Set status" if: always() 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. |