summaryrefslogtreecommitdiff
path: root/tests/test_execfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r--tests/test_execfile.py2
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])