Show More
@@ -179,6 +179,11 class InteractiveShellTestCase(unittest.TestCase): | |||
|
179 | 179 | s = ''' sum([1, 2, |
|
180 | 180 | 3, 4])''' |
|
181 | 181 | |
|
182 | tm = ip.magics_manager.registry['TerminalMagics'] | |
|
182 | 183 | with tt.AssertPrints("If you want to paste code into IPython, try the " |
|
183 | 184 | "%paste and %cpaste magic functions."): |
|
184 | 185 | ip.run_cell(s) |
|
186 | ||
|
187 | with tt.AssertNotPrints("If you want to paste code into IPython, try the " | |
|
188 | "%paste and %cpaste magic functions."): | |
|
189 | tm.store_or_execute(s, name=None) |
General Comments 0
You need to be logged in to leave comments.
Login now