MCPcopy Create free account
hub / github.com/dateutil/dateutil / _unreadable_file

Function _unreadable_file

tests/test_tzfile.py:1912–1917  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

1910
1911
1912def _unreadable_file(path):
1913 path.write_bytes(_valid_tzif_data())
1914 os.chmod(str(path), 0)
1915 if os.access(str(path), os.R_OK): # pragma: nocover
1916 # e.g. running as root
1917 pytest.skip("Cannot make a file unreadable here")
1918
1919
1920INVALID_TZPATH_FILES = [

Callers

nothing calls this directly

Calls 1

_valid_tzif_dataFunction · 0.85

Tested by

no test coverage detected