Test exception path in exception_validate, expecting windows line endings.
(self)
| 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, |