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

Function test_nonexistent_file

tests/unit/test_file_processor.py:389–392  ·  view source on GitHub ↗

Verify that FileProcessor raises IOError when a file does not exist.

(default_options)

Source from the content-addressed store, hash-verified

387
388
389def test_nonexistent_file(default_options):
390 """Verify that FileProcessor raises IOError when a file does not exist."""
391 with pytest.raises(IOError):
392 processor.FileProcessor("foobar.py", default_options)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected