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

Function invalid_textfile

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

Source from the content-addressed store, hash-verified

57
58
59def invalid_textfile(filedir):
60 # Generate and return an invalid filename.
61 fd, path = mkstemp(suffix='.txt', prefix='dstmp_', dir=filedir)
62 os.close(fd)
63 os.remove(path)
64 return path
65
66
67def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…