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

Function invalid_textfile

numpy/lib/tests/test__datasource.py:57–62  ·  view source on GitHub ↗
(filedir)

Source from the content-addressed store, hash-verified

55
56
57def invalid_textfile(filedir):
58 # Generate and return an invalid filename.
59 fd, path = mkstemp(suffix='.txt', prefix='dstmp_', dir=filedir)
60 os.close(fd)
61 os.remove(path)
62 return path
63
64
65def valid_httpurl():

Callers 3

test_InvalidFileMethod · 0.85
test_InvalidFileMethod · 0.85
test_InvalidFileMethod · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected