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

Function valid_textfile

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

Source from the content-addressed store, hash-verified

50
51# Utility functions used by many tests
52def valid_textfile(filedir):
53 # Generate and return a valid temporary file.
54 fd, path = mkstemp(suffix='.txt', prefix='dstmp_', dir=filedir, text=True)
55 os.close(fd)
56 return path
57
58
59def invalid_textfile(filedir):

Callers 8

test_ValidFileMethod · 0.85
test_ValidFileMethod · 0.85
test_ValidFileMethod · 0.85
test_InvalidFileMethod · 0.85
test_sandboxingMethod · 0.85
test_ValidFileMethod · 0.85
test_CachedHTTPFileMethod · 0.85
test_DataSourceOpenMethod · 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…