MCPcopy
hub / github.com/numpy/numpy / test_windows_os_sep

Method test_windows_os_sep

numpy/lib/tests/test__datasource.py:234–244  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

232 assert_(path(fn).startswith(str(tmp_path)))
233
234 def test_windows_os_sep(self, tmp_path):
235 orig_os_sep = os.sep
236 try:
237 os.sep = '\\'
238 self.test_ValidHTTP(tmp_path)
239 self.test_ValidFile(tmp_path)
240 self.test_InvalidHTTP(tmp_path)
241 self.test_InvalidFile(tmp_path)
242 self.test_sandboxing(tmp_path)
243 finally:
244 os.sep = orig_os_sep
245
246
247class TestRepositoryAbspath:

Callers

nothing calls this directly

Calls 5

test_ValidHTTPMethod · 0.95
test_ValidFileMethod · 0.95
test_InvalidHTTPMethod · 0.95
test_InvalidFileMethod · 0.95
test_sandboxingMethod · 0.95

Tested by

no test coverage detected