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

Method test_InvalidFile

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

Source from the content-addressed store, hash-verified

119 fh.close()
120
121 def test_InvalidFile(self):
122 invalid_file = invalid_textfile(self.tmpdir)
123 assert_raises(OSError, self.ds.open, invalid_file)
124
125 def test_ValidGzipFile(self):
126 try:

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
invalid_textfileFunction · 0.85

Tested by

no test coverage detected