Show More
@@ -99,6 +99,21 b' class NonAsciiTest(unittest.TestCase):' | |||||
99 | with tt.AssertPrints("ZeroDivisionError"): |
|
99 | with tt.AssertPrints("ZeroDivisionError"): | |
100 | with tt.AssertPrints(u'дбИЖ', suppress=False): |
|
100 | with tt.AssertPrints(u'дбИЖ', suppress=False): | |
101 | ip.run_cell('fail()') |
|
101 | ip.run_cell('fail()') | |
|
102 | ||||
|
103 | def test_nonascii_msg(self): | |||
|
104 | cell = u"raise Exception('é')" | |||
|
105 | expected = u"Exception('é')" | |||
|
106 | ip.run_cell("%xmode plain") | |||
|
107 | with tt.AssertPrints(expected): | |||
|
108 | ip.run_cell(cell) | |||
|
109 | ||||
|
110 | ip.run_cell("%xmode verbose") | |||
|
111 | with tt.AssertPrints(expected): | |||
|
112 | ip.run_cell(cell) | |||
|
113 | ||||
|
114 | ip.run_cell("%xmode context") | |||
|
115 | with tt.AssertPrints(expected): | |||
|
116 | ip.run_cell(cell) | |||
102 |
|
117 | |||
103 |
|
118 | |||
104 | class NestedGenExprTestCase(unittest.TestCase): |
|
119 | class NestedGenExprTestCase(unittest.TestCase): |
General Comments 0
You need to be logged in to leave comments.
Login now