We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 515dfbe commit de7fc81Copy full SHA for de7fc81
1 file changed
hypothesis-python/tests/cover/test_constants_ast.py
@@ -195,7 +195,7 @@ def test_local_modules_ignores_test_modules(path):
195
196
def test_ignores_ast_parse_error(tmp_path):
197
p = tmp_path / "errors_on_parse.py"
198
- p.write_text("[1, " * 200 + "]" * 200)
+ p.write_text("[1, " * 200 + "]" * 200, encoding="utf-8")
199
module = ModuleType("<test_constants_from_module_large_string>")
200
module.__file__ = str(p)
201
0 commit comments