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

Method test_DataSourceOpen

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

Source from the content-addressed store, hash-verified

324 rmtree(self.tmpdir)
325
326 def test_DataSourceOpen(self):
327 local_file = valid_textfile(self.tmpdir)
328 # Test case where destpath is passed in
329 fp = datasource.open(local_file, destpath=self.tmpdir)
330 assert_(fp)
331 fp.close()
332 # Test case where default destpath is used
333 fp = datasource.open(local_file)
334 assert_(fp)
335 fp.close()
336
337def test_del_attr_handling():
338 # 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