MCPcopy Index your code
hub / github.com/python/cpython / test_failures

Method test_failures

Lib/test/test_unicode_file_functions.py:97–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 (fn.__name__, filename, exc_filename))
96
97 def test_failures(self):
98 # Pass non-existing Unicode filenames all over the place.
99 for name in self.files:
100 name = "not_" + name
101 self._apply_failure(open, name)
102 self._apply_failure(os.stat, name)
103 self._apply_failure(os.chdir, name)
104 self._apply_failure(os.rmdir, name)
105 self._apply_failure(os.remove, name)
106 self._apply_failure(os.listdir, name)
107
108 if sys.platform == 'win32':
109 # Windows is lunatic. Issue #13366.

Callers

nothing calls this directly

Calls 1

_apply_failureMethod · 0.95

Tested by

no test coverage detected