Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
amoffat committed Aug 7, 2023
1 parent 09c4ed9 commit e117fd8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Run tests
run: |
SH_TESTS_RUNNING=1 SH_TESTS_USE_SELECT=${{ matrix.use-select }} LANG=${{ matrix.lang }} poetry run coverage run -a -m unittest
SH_TESTS_RUNNING=1 SH_TESTS_USE_SELECT=${{ matrix.use-select }} LANG=${{ matrix.lang }} poetry run coverage run -a -m pytest
- name: Store coverage
uses: actions/upload-artifact@v2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ __pycache__/
/build
/dist
/docs/build
/TODO.md
/TODO.md
/htmlcov/
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Coverage

First run all of the tests::

$> SH_TESTS_RUNNING=1 coverage run --source=sh -m unittest
$> SH_TESTS_RUNNING=1 coverage run --source=sh -m pytest

This will aggregate a ``.coverage``. You may then visualize the report with::

Expand Down
4 changes: 2 additions & 2 deletions sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

try:
from collections.abc import Mapping
except ImportError:
except ImportError: # pragma: no cover
from collections import Mapping

import errno
Expand Down Expand Up @@ -69,7 +69,7 @@

try:
__version__ = metadata.version("sh")
except metadata.PackageNotFoundError:
except metadata.PackageNotFoundError: # pragma: no cover
__version__ = "unknown"
__project_url__ = "https://github.com/amoffat/sh"

Expand Down

0 comments on commit e117fd8

Please sign in to comment.