Skip to content

Commit fb17750

Browse files
committed
Cleanup
1 parent ba195c5 commit fb17750

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nbval/cover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setup_coverage(config, kernel, floc, output_loc=None):
6868
kernel.await_idle(msg_id, 60) # A minute should be plenty to enable coverage
6969
else:
7070
warnings.warn_explicit(
71-
'Coverage currently not supported for language "%s".' % language,
71+
'Coverage currently not supported for language %r.' % language,
7272
category=UserWarning,
7373
filename=floc[0] if floc else '',
7474
lineno=0

tests/test_coverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
pytest_plugins = "pytester"
99

1010

11-
_re_coverage_report_line = re.compile('^(\w)\s*(\d+)\s*(\d+)\s*(\d+)%$')
11+
_re_coverage_report_line = re.compile(r'^(\w)\s*(\d+)\s*(\d+)\s*(\d+)%$')
1212

1313

1414
def test_coverage(testdir):
@@ -49,7 +49,7 @@ def test_sum():
4949
result = testdir.runpytest_inprocess('--nbval', '--current-env', '--cov', '.')
5050

5151
# Check tests went off as they should:
52-
result.ret == 0
52+
assert result.ret == 0
5353

5454
# Ensure coverage report was generated:
5555
assert os.path.exists(os.path.join(str(testdir.tmpdir), '.coverage'))

0 commit comments

Comments
 (0)