MCPcopy Index your code
hub / github.com/ipython/ipython / test_exception_path2

Method test_exception_path2

tests/test_tools.py:113–123  ·  view source on GitHub ↗

Test exception path in exception_validate, expecting windows line endings.

(self)

Source from the content-addressed store, hash-verified

111 tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\nD")
112
113 def test_exception_path2(self):
114 """Test exception path in exception_validate, expecting windows line endings."""
115 self.mktmp(
116 "import sys\n"
117 "print('A')\n"
118 "print('B')\n"
119 "print('C', file=sys.stderr)\n"
120 "print('D', file=sys.stderr)\n"
121 )
122 out = "A\r\nB"
123 tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\r\nD")
124
125 def tearDown(self):
126 # tear down correctly the mixin,

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected