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

Method test_main_path

IPython/testing/tests/test_tools.py:89–96  ·  view source on GitHub ↗

Test with only stdout results.

(self)

Source from the content-addressed store, hash-verified

87
88class Test_ipexec_validate(tt.TempFileMixin):
89 def test_main_path(self):
90 """Test with only stdout results.
91 """
92 self.mktmp("print('A')\n"
93 "print('B')\n"
94 )
95 out = "A\nB"
96 tt.ipexec_validate(self.fname, out)
97
98 def test_main_path2(self):
99 """Test with only stdout results, expecting windows line endings.

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected