diff --git a/tests/test_execute.py b/tests/test_execute.py index f1424def5..3c972af44 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -84,7 +84,7 @@ def test_execute_readme_not_ok(tmpdir): """) import nbconvert - with pytest.raises(nbconvert.preprocessors.execute.CellExecutionError, match="NameError: name 'a' is not defined"): + with pytest.raises(nbconvert.preprocessors.execute.CellExecutionError, match="is not defined"): jupytext(args=[tmp_md, '--execute'])