Skip to content

Commit c804c0d

Browse files
psafontmr-c
authored andcommitted
Do not capture errors in temp dir contexts (#963)
* fix: do not capture errors in the context
1 parent aec741f commit c804c0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build_script:
4141

4242
test_script:
4343
- |
44-
%PYTHON%\\python.exe -m coverage run --parallel-mode -m pytest --strict -p no:cacheprovider --junit-xml=tests.xml
44+
%PYTHON%\\python.exe -m coverage run --parallel-mode -m pytest --strict -p no:cacheprovider -p no:stepwise --junit-xml=tests.xml
4545
- "%PYTHON%\\python.exe -m coverage combine"
4646
- "%PYTHON%\\python.exe -m coverage report"
4747
- "%PYTHON%\\python.exe -m coverage xml"

tests/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def temp_dir(suffix=""):
7777
c_dir = tempfile.mkdtemp(suffix)
7878
try:
7979
yield c_dir
80-
except:
80+
finally:
8181
shutil.rmtree(c_dir)
8282

8383
@contextlib.contextmanager

0 commit comments

Comments
 (0)