(runner)
| 706 | |
| 707 | |
| 708 | def test_open_file_respects_ignore(runner): |
| 709 | with runner.isolated_filesystem(): |
| 710 | with open("test.txt", "w") as f: |
| 711 | f.write("Hello world!") |
| 712 | |
| 713 | with click.open_file("test.txt", encoding="utf8", errors="ignore") as f: |
| 714 | assert f.errors == "ignore" |
| 715 | |
| 716 | |
| 717 | def test_open_file_ignore_invalid_utf8(runner): |
nothing calls this directly
no test coverage detected