MCPcopy Create free account
hub / github.com/simplejson/simplejson / open_temp_file

Function open_temp_file

simplejson/tests/test_tool.py:13–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 return re.sub(b"\\[\\d+ refs\\]\\r?\\n?$", b"", stderr).strip()
12
13def open_temp_file():
14 file = tempfile.NamedTemporaryFile(delete=False)
15 filename = file.name
16 return file, filename
17
18class TestTool(unittest.TestCase):
19 data = """

Callers 2

test_infile_stdoutMethod · 0.85
test_infile_outfileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…