MCPcopy Create free account
hub / github.com/numpy/numpy / test_windows_os_sep

Method test_windows_os_sep

numpy/lib/tests/test__datasource.py:240–250  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 assert_(tmp_path(fn).startswith(self.tmpdir))
239
240 def test_windows_os_sep(self):
241 orig_os_sep = os.sep
242 try:
243 os.sep = '\\'
244 self.test_ValidHTTP()
245 self.test_ValidFile()
246 self.test_InvalidHTTP()
247 self.test_InvalidFile()
248 self.test_sandboxing()
249 finally:
250 os.sep = orig_os_sep
251
252
253class 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