diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-25 07:34:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-27 05:51:26 -0400 |
commit | 263582fb688d0fb94465da21cc80c87a046d95b1 (patch) | |
tree | df4419d0d11ec88603facd11ff7801134f8f7909 /tests/test_execfile.py | |
parent | 5fc20859ff816fc9af56a50bf0690eac87b52d16 (diff) | |
download | python-coveragepy-git-263582fb688d0fb94465da21cc80c87a046d95b1.tar.gz |
build: 3.11.0 and 3.12.0a1 are available
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r-- | tests/test_execfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py index 83db5273..329ec528 100644 --- a/tests/test_execfile.py +++ b/tests/test_execfile.py @@ -259,7 +259,7 @@ class RunPycFileTest(CoverageTest): path = python_reported_file('binary') msg = ( re.escape(f"Couldn't run '{path}' as Python code: ") + - r"(TypeError|ValueError): source code string cannot contain null bytes" + r"(ValueError|SyntaxError): source code string cannot contain null bytes" ) with pytest.raises(Exception, match=msg): run_python_file([bf]) |