File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ jobs:
14
14
strategy :
15
15
matrix :
16
16
os : [ubuntu-latest, macos-latest]
17
- python : ['3.6', '3.7']
17
+ python : ['3.6', '3.7', '3.8', '3.9' ]
18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
- uses : actions/setup-python@v2
21
21
with :
22
22
python-version : ${{ matrix.python }}
23
- - run : python -mpip install --upgrade setuptools pip tox virtualenv
23
+ - run : python -m pip install --upgrade setuptools pip tox virtualenv
24
24
- run : tox -e py
25
25
- run : tox -e mypy
Original file line number Diff line number Diff line change
1
+ import os
1
2
import random
2
3
import string
3
4
import tempfile
@@ -151,6 +152,7 @@ def test_generate_report(
151
152
assert item [key ] == expected [key ]
152
153
found = True
153
154
assert found
155
+ os .unlink (baseline_file )
154
156
155
157
156
158
def count_results (data ):
@@ -187,7 +189,7 @@ def baseline_file():
187
189
188
190
with create_file_with_content (first_content ) as first_file , \
189
191
create_file_with_content (second_content ) as second_file , \
190
- tempfile .NamedTemporaryFile () as baseline_file , \
192
+ tempfile .NamedTemporaryFile (delete = False ) as baseline_file , \
191
193
transient_settings ({
192
194
'plugins_used' : [
193
195
{'name' : 'BasicAuthDetector' },
You can’t perform that action at this time.
0 commit comments