def test_run_debug_twice(self): # https://github.com/ipython/ipython/issues/10028 _ip = get_ipython() with tt.fake_input(['c']): _ip.magic('run -d %s' % self.fname) with tt.fake_input(['c']): _ip.magic('run -d %s' % self.fname)
def test_run_debug_twice(self): # https://github.com/ipython/ipython/issues/10028 _ip = get_ipython() with tt.fake_input(['c']): _ip.magic('run -d %s' % self.fname) with tt.fake_input(['c']): _ip.magic('run -d %s' % self.fname)
def test_run_debug_twice_with_breakpoint(self): """Make a valid python temp file.""" _ip = get_ipython() with tt.fake_input(['b 2', 'c', 'c']): _ip.magic('run -d %s' % self.fname) with tt.fake_input(['c']): with tt.AssertNotPrints('KeyError'): _ip.magic('run -d %s' % self.fname)
def test_run_debug_twice_with_breakpoint(self): """Make a valid python temp file.""" _ip = get_ipython() with tt.fake_input(['b 2', 'c', 'c']): _ip.magic('run -d %s' % self.fname) with tt.fake_input(['c']): with tt.AssertNotPrints('KeyError'): _ip.magic('run -d %s' % self.fname)
def test_run_debug_twice_with_breakpoint(self): """Make a valid python temp file.""" _ip = get_ipython() with tt.fake_input(["b 2", "c", "c"]): _ip.magic("run -d %s" % self.fname) with tt.fake_input(["c"]): with tt.AssertNotPrints("KeyError"): _ip.magic("run -d %s" % self.fname)