コード例 #1
0
 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)
コード例 #2
0
ファイル: test_run.py プロジェクト: ian-r-rose/ipython
 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)
コード例 #3
0
    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)
コード例 #4
0
ファイル: test_run.py プロジェクト: BarnetteME1/DnD-stuff
    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)
コード例 #5
0
ファイル: test_run.py プロジェクト: terrdavis/ipython
    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)