MCPcopy Index your code
hub / github.com/numpy/numpy / test_DataSourceOpen

Method test_DataSourceOpen

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

Source from the content-addressed store, hash-verified

302
303class TestOpenFunc:
304 def test_DataSourceOpen(self, tmp_path):
305 local_file = valid_textfile(tmp_path)
306 # Test case where destpath is passed in
307 fp = datasource.open(local_file, destpath=tmp_path)
308 assert_(fp)
309 fp.close()
310 # Test case where default destpath is used
311 fp = datasource.open(local_file)
312 assert_(fp)
313 fp.close()
314
315def test_del_attr_handling():
316 # DataSource __del__ can be called

Callers

nothing calls this directly

Calls 4

assert_Function · 0.90
valid_textfileFunction · 0.85
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected