MCPcopy
hub / github.com/pallets/click / test_open_file_ignore_no_encoding

Function test_open_file_ignore_no_encoding

tests/test_utils.py:726–732  ·  tests/test_utils.py::test_open_file_ignore_no_encoding
(runner)

Source from the content-addressed store, hash-verified

724
725
726def test_open_file_ignore_no_encoding(runner):
727 with runner.isolated_filesystem():
728 with open(class="st">"test.bin", class="st">"wb") as f:
729 f.write(os.urandom(16))
730
731 with click.open_file(class="st">"test.bin", errors=class="st">"ignore") as f:
732 f.read()
733
734
735@pytest.mark.skipif(WIN, reason=class="st">"os.chmod() is not fully supported on Windows.")

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
isolated_filesystemMethod · 0.80
readMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected