Skip to content

Commit de7fc81

Browse files
committed
add encoding
1 parent 515dfbe commit de7fc81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypothesis-python/tests/cover/test_constants_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_local_modules_ignores_test_modules(path):
195195

196196
def test_ignores_ast_parse_error(tmp_path):
197197
p = tmp_path / "errors_on_parse.py"
198-
p.write_text("[1, " * 200 + "]" * 200)
198+
p.write_text("[1, " * 200 + "]" * 200, encoding="utf-8")
199199
module = ModuleType("<test_constants_from_module_large_string>")
200200
module.__file__ = str(p)
201201

0 commit comments

Comments
 (0)