MCPcopy
hub / github.com/pytest-dev/pytest / test_scandir_with_non_existent_directory

Function test_scandir_with_non_existent_directory

testing/test_pathlib.py:573–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571
572
573def test_scandir_with_non_existent_directory() -> None:
574 # Test with a directory that does not exist
575 non_existent_dir = "path_to_non_existent_dir"
576 result = scandir(non_existent_dir)
577 # Assert that the result is an empty list
578 assert result == []
579
580
581def test_scandir_handles_os_error() -> None:

Callers

nothing calls this directly

Calls 1

scandirFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…