Show More
@@ -118,6 +118,12 b' class TestMagicRunPass(tt.TempFileMixin):' | |||||
118 | # See below and ticket https://bugs.launchpad.net/bugs/366353 |
|
118 | # See below and ticket https://bugs.launchpad.net/bugs/366353 | |
119 | _ip.magic('run %s' % self.fname) |
|
119 | _ip.magic('run %s' % self.fname) | |
120 |
|
120 | |||
|
121 | def run_tmpfile_p(self): | |||
|
122 | _ip = get_ipython() | |||
|
123 | # This fails on Windows if self.tmpfile.name has spaces or "~" in it. | |||
|
124 | # See below and ticket https://bugs.launchpad.net/bugs/366353 | |||
|
125 | _ip.magic('run -p %s' % self.fname) | |||
|
126 | ||||
121 | def test_builtins_id(self): |
|
127 | def test_builtins_id(self): | |
122 | """Check that %run doesn't damage __builtins__ """ |
|
128 | """Check that %run doesn't damage __builtins__ """ | |
123 | _ip = get_ipython() |
|
129 | _ip = get_ipython() | |
@@ -145,6 +151,12 b' class TestMagicRunPass(tt.TempFileMixin):' | |||||
145 | p2 = str(_ip.displayhook.prompt2).strip() |
|
151 | p2 = str(_ip.displayhook.prompt2).strip() | |
146 | nt.assert_equals(p2[:3], '...') |
|
152 | nt.assert_equals(p2[:3], '...') | |
147 |
|
153 | |||
|
154 | def test_run_profile( self ): | |||
|
155 | """Test that the option -p, which invokes the profiler, do not | |||
|
156 | crash by invoking execfile""" | |||
|
157 | _ip = get_ipython() | |||
|
158 | self.run_tmpfile_p() | |||
|
159 | ||||
148 |
|
160 | |||
149 | class TestMagicRunSimple(tt.TempFileMixin): |
|
161 | class TestMagicRunSimple(tt.TempFileMixin): | |
150 |
|
162 |
General Comments 0
You need to be logged in to leave comments.
Login now