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

Method test_InvalidFile

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

Source from the content-addressed store, hash-verified

117 fh.close()
118
119 def test_InvalidFile(self, tmp_path):
120 ds = datasource.DataSource(tmp_path)
121 invalid_file = invalid_textfile(tmp_path)
122 assert_raises(OSError, ds.open, invalid_file)
123
124 def test_ValidGzipFile(self, tmp_path):
125 try:

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
invalid_textfileFunction · 0.85

Tested by

no test coverage detected