##// END OF EJS Templates
Merge pull request #10700 from ipython/auto-backport-of-pr-10699...
Thomas Kluyver -
r23802:5cfa67a2 merge
parent child Browse files
Show More
@@ -816,6 +816,7 b' python-profiler package from non-free.""")'
816 bdb.Breakpoint.next = 1
816 bdb.Breakpoint.next = 1
817 bdb.Breakpoint.bplist = {}
817 bdb.Breakpoint.bplist = {}
818 bdb.Breakpoint.bpbynumber = [None]
818 bdb.Breakpoint.bpbynumber = [None]
819 deb.clear_all_breaks()
819 if bp_line is not None:
820 if bp_line is not None:
820 # Set an initial breakpoint to stop execution
821 # Set an initial breakpoint to stop execution
821 maxtries = 10
822 maxtries = 10
@@ -171,8 +171,8 b' def doctest_reset_del():'
171 class TestMagicRunPass(tt.TempFileMixin):
171 class TestMagicRunPass(tt.TempFileMixin):
172
172
173 def setup(self):
173 def setup(self):
174 """Make a valid python temp file."""
174 content = "a = [1,2,3]\nb = 1"
175 self.mktmp('pass\n')
175 self.mktmp(content)
176
176
177 def run_tmpfile(self):
177 def run_tmpfile(self):
178 _ip = get_ipython()
178 _ip = get_ipython()
@@ -219,6 +219,16 b' class TestMagicRunPass(tt.TempFileMixin):'
219 with tt.fake_input(['c']):
219 with tt.fake_input(['c']):
220 _ip.magic('run -d %s' % self.fname)
220 _ip.magic('run -d %s' % self.fname)
221
221
222 def test_run_debug_twice_with_breakpoint(self):
223 """Make a valid python temp file."""
224 _ip = get_ipython()
225 with tt.fake_input(['b 2', 'c', 'c']):
226 _ip.magic('run -d %s' % self.fname)
227
228 with tt.fake_input(['c']):
229 with tt.AssertNotPrints('KeyError'):
230 _ip.magic('run -d %s' % self.fname)
231
222
232
223 class TestMagicRunSimple(tt.TempFileMixin):
233 class TestMagicRunSimple(tt.TempFileMixin):
224
234
General Comments 0
You need to be logged in to leave comments. Login now