Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 661c50b156b5db856f845391104d08340f4d6be1
Author: Jens Hübner <jhuebner@nano.uni-hannover.de>
Date:   Tue Feb 9 19:00:27 2021 +0100

    modified coverage for code which is unreachable s.a. https://bugs.python.org/issue39340

commit f9cb8e7a1df21d029e2da17a9742f89d9bea0170
Author: Jens Hübner <jhuebner@nano.uni-hannover.de>
Date:   Tue Feb 9 10:00:16 2021 +0100

    added posargs to tox.ini
  • Loading branch information
juhuebner committed Feb 9, 2021
1 parent f69adcc commit d94c2e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- patch_private_dict
tags:
- "*"
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger = logging.getLogger(__name__)


def force_delete(func, path, exc_info):
def force_delete(func, path, exc_info): # pragma: no cover due to https://bugs.python.org/issue39340
"""Error handler for `shutil.rmtree()` equivalent to `rm -rf`.
Usage: `shutil.rmtree(path, onerror=force_delete)`
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ passenv =
HOME
commands =
pip install -e .
pytest --cov=cookiecutter --cov-report=term --cov-report=html --cov-report=xml
pytest --cov=cookiecutter --cov-report=term --cov-report=html --cov-report=xml {posargs}
deps = -rtest_requirements.txt
skip_install = true

Expand Down

0 comments on commit d94c2e7

Please sign in to comment.