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