Show More
@@ -100,6 +100,15 b' class Test_ipexec_validate(unittest.TestCase, tt.TempFileMixin):' | |||
|
100 | 100 | out = "A\nB" |
|
101 | 101 | tt.ipexec_validate(self.fname, out) |
|
102 | 102 | |
|
103 | def test_main_path2(self): | |
|
104 | """Test with only stdout results, expecting windows line endings. | |
|
105 | """ | |
|
106 | self.mktmp("print('A')\n" | |
|
107 | "print('B')\n" | |
|
108 | ) | |
|
109 | out = "A\r\nB" | |
|
110 | tt.ipexec_validate(self.fname, out) | |
|
111 | ||
|
103 | 112 | def test_exception_path(self): |
|
104 | 113 | """Test exception path in exception_validate. |
|
105 | 114 | """ |
@@ -112,3 +121,16 b' class Test_ipexec_validate(unittest.TestCase, tt.TempFileMixin):' | |||
|
112 | 121 | ) |
|
113 | 122 | out = "A\nB" |
|
114 | 123 | tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\nD") |
|
124 | ||
|
125 | def test_exception_path(self): | |
|
126 | """Test exception path in exception_validate, expecting windows line endings. | |
|
127 | """ | |
|
128 | self.mktmp("from __future__ import print_function\n" | |
|
129 | "import sys\n" | |
|
130 | "print('A')\n" | |
|
131 | "print('B')\n" | |
|
132 | "print('C', file=sys.stderr)\n" | |
|
133 | "print('D', file=sys.stderr)\n" | |
|
134 | ) | |
|
135 | out = "A\r\nB" | |
|
136 | tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\r\nD") |
General Comments 0
You need to be logged in to leave comments.
Login now