MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_stdin_unknown_coding_token

Function test_stdin_unknown_coding_token

tests/unit/test_utils.py:193–197  ·  view source on GitHub ↗

Ensure we produce source even for unknown encodings.

()

Source from the content-addressed store, hash-verified

191
192
193def 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(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected