Show More
@@ -355,3 +355,10 b' def test_cpaste():' | |||||
355 |
|
355 | |||
356 | for code in tests['fail']: |
|
356 | for code in tests['fail']: | |
357 | check_cpaste(code, should_fail=True) |
|
357 | check_cpaste(code, should_fail=True) | |
|
358 | ||||
|
359 | def test_xmode(): | |||
|
360 | # Calling xmode three times should be a no-op | |||
|
361 | xmode = _ip.InteractiveTB.mode | |||
|
362 | for i in range(3): | |||
|
363 | _ip.magic("xmode") | |||
|
364 | nt.assert_equal(_ip.InteractiveTB.mode, xmode) |
@@ -1090,7 +1090,7 b' class FormattedTB(VerboseTB, ListTB):' | |||||
1090 | # include variable details only in 'Verbose' mode |
|
1090 | # include variable details only in 'Verbose' mode | |
1091 | self.include_vars = (self.mode == self.valid_modes[2]) |
|
1091 | self.include_vars = (self.mode == self.valid_modes[2]) | |
1092 | # Set the join character for generating text tracebacks |
|
1092 | # Set the join character for generating text tracebacks | |
1093 | self.tb_join_char = self._join_chars[mode] |
|
1093 | self.tb_join_char = self._join_chars[self.mode] | |
1094 |
|
1094 | |||
1095 | # some convenient shorcuts |
|
1095 | # some convenient shorcuts | |
1096 | def plain(self): |
|
1096 | def plain(self): |
General Comments 0
You need to be logged in to leave comments.
Login now