Ensure we produce source even for unknown encodings.
()
| 191 | |
| 192 | |
| 193 | def test_stdin_unknown_coding_token(): |
| 194 | """Ensure we produce source even for unknown encodings.""" |
| 195 | stdin = io.TextIOWrapper(io.BytesIO(b"# coding: unknown\n"), "UTF-8") |
| 196 | with mock.patch.object(sys, "stdin", stdin): |
| 197 | assert utils.stdin_get_value.__wrapped__() == "# coding: unknown\n" |
| 198 | |
| 199 | |
| 200 | @pytest.mark.parametrize( |
nothing calls this directly
no outgoing calls
no test coverage detected