(runner)
| 715 | |
| 716 | |
| 717 | def test_open_file_ignore_invalid_utf8(runner): |
| 718 | with runner.isolated_filesystem(): |
| 719 | with open("test.txt", "wb") as f: |
| 720 | f.write(b"\xe2\x28\xa1") |
| 721 | |
| 722 | with click.open_file("test.txt", encoding="utf8", errors="ignore") as f: |
| 723 | f.read() |
| 724 | |
| 725 | |
| 726 | def test_open_file_ignore_no_encoding(runner): |
nothing calls this directly
no test coverage detected