summaryrefslogtreecommitdiff
path: root/scripts/dev/check_coverage.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/check_coverage.py')
-rw-r--r--scripts/dev/check_coverage.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/dev/check_coverage.py b/scripts/dev/check_coverage.py
index a3a9bf644..38a8f6ca1 100644
--- a/scripts/dev/check_coverage.py
+++ b/scripts/dev/check_coverage.py
@@ -123,6 +123,8 @@ PERFECT_FILES = [
'qutebrowser/misc/objects.py'),
('tests/unit/misc/test_throttle.py',
'qutebrowser/misc/throttle.py'),
+ ('tests/unit/misc/test_pakjoy.py',
+ 'qutebrowser/misc/pakjoy.py'),
(None,
'qutebrowser/mainwindow/statusbar/keystring.py'),
@@ -328,10 +330,6 @@ def main_check():
print("or check https://codecov.io/github/qutebrowser/qutebrowser")
print()
- if scriptutils.ON_CI:
- print("Keeping coverage.xml on CI.")
- else:
- os.remove('coverage.xml')
return 1 if messages else 0
@@ -352,7 +350,6 @@ def main_check_all():
'--cov-report', 'xml', test_file], check=True)
with open('coverage.xml', encoding='utf-8') as f:
messages = check(f, [(test_file, src_file)])
- os.remove('coverage.xml')
messages = [msg for msg in messages
if msg.typ == MsgType.insufficient_coverage]