Show More
@@ -162,7 +162,8 b' class DisplayHook(Configurable):' | |||
|
162 | 162 | """Should we silence the display hook because of ';'?""" |
|
163 | 163 | # do not print output if input ends in ';' |
|
164 | 164 | try: |
|
165 |
|
|
|
165 | cell = self.shell.history_manager.input_hist_parsed[self.prompt_count] | |
|
166 | if cell.rstrip().endswith(';'): | |
|
166 | 167 | return True |
|
167 | 168 | except IndexError: |
|
168 | 169 | # some uses of ipshellembed may fail here |
@@ -64,7 +64,6 b' class InteractiveShellTestCase(unittest.TestCase):' | |||
|
64 | 64 | ip.run_cell('tmp=1;"""a\nb"""\n') |
|
65 | 65 | self.assertEquals(ip.user_ns['tmp'], 1) |
|
66 | 66 | |
|
67 | @dec.skip_known_failure | |
|
68 | 67 | def test_dont_cache_with_semicolon(self): |
|
69 | 68 | "Ending a line with semicolon should not cache the returned object (GH-307)" |
|
70 | 69 | ip = get_ipython() |
General Comments 0
You need to be logged in to leave comments.
Login now