We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267622b commit b5ddfd9Copy full SHA for b5ddfd9
tests/test_execfile.py
@@ -165,12 +165,7 @@ def test_running_py_from_binary(self):
165
path = python_reported_file('binary')
166
msg = (
167
re.escape(f"Couldn't run '{path}' as Python code: ") +
168
- r"(TypeError|ValueError): "
169
- r"("
170
- r"compile\(\) expected string without null bytes" # for py2
171
- r"|"
172
- r"source code string cannot contain null bytes" # for py3
173
- r")"
+ r"(TypeError|ValueError): source code string cannot contain null bytes"
174
)
175
with pytest.raises(Exception, match=msg):
176
run_python_file([bf])
0 commit comments