MCPcopy Create free account
hub / github.com/ipython/ipython / test_temp_pyfile

Function test_temp_pyfile

IPython/testing/tests/test_tools.py:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_temp_pyfile():
64 src = 'pass\n'
65 fname = tt.temp_pyfile(src)
66 assert os.path.isfile(fname)
67 with open(fname) as fh2:
68 src2 = fh2.read()
69 nt.assert_equal(src2, src)
70
71class TestAssertPrints(unittest.TestCase):
72 def test_passing(self):

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected