Skip to content

Commit

Permalink
Merge pull request #144 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings in Python 3.8
  • Loading branch information
takluyver committed May 17, 2020
2 parents 8593e7d + cc2758b commit 3597e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbval/nbdime_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

nbdime.log.set_nbdime_log_level('ERROR')

_re_nbval_nodeid = re.compile('.*\.ipynb::Cell \d+')
_re_nbval_nodeid = re.compile(r'.*\.ipynb::Cell \d+')


class NbdimeReporter:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit_tests_in_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_print(filename, correctoutcome):
if correctoutcome == 'pass':
if exitcode != 0:
raise AssertionError("Tests failed on ipynb (expected pass)")
assert exitcode is 0
assert exitcode == 0
print("The call of py.test has not reported errors - this is good.")
elif correctoutcome == 'fail':
if exitcode == 0:
Expand Down

0 comments on commit 3597e0b

Please sign in to comment.