コード例 #1
0
 def test_basic(self):
     """Test invoking debugger without a file name"""
     result=Mhelper.run_debugger(testname='noscript',
                                 dbgr_opts='--basename',
                                 python_file=None)
     self.assertEqual(True, result, "debugger 'step' command comparision")
     return
コード例 #2
0
 def test_step(self):
     """Test stepping, set skip, set trace"""
     result = Mhelper.run_debugger(testname='step',
                                   dbgr_opts='--basename --highlight=plain',
                                   python_file='gcd.py')
     self.assertEqual(True, result, "debugger 'step' command comparision")
     return
コード例 #3
0
 def test_macro(self):
     """Test macro and info macro"""
     result = Mhelper.run_debugger(testname='macro',
                                   dbgr_opts='--basename ' +
                                   '--highlight=plain --nx',
                                   python_file='gcd.py')
     self.assertEqual(True, result, "debugger 'macro' command comparision")
     return
コード例 #4
0
 def test_macro(self):
     """Test set/show highlight"""
     result=Mhelper.run_debugger(testname='highlight',
                                 dbgr_opts='--basename ' +
                                 '--highlight=plain --nx',
                                 python_file='gcd.py')
     self.assertEqual(True, result, "'highlight' command comparision")
     return
コード例 #5
0
ファイル: test-general.py プロジェクト: rocky/python3-trepan
 def test_step(self):
     """Test stepping, set skip, set trace"""
     if PYTHON_VERSION >= 3.8:
         right_template = '%s-38.right'
     else:
         right_template = None
     result=Mhelper.run_debugger(testname='step',
                                 dbgr_opts='--basename --highlight=plain',
                                 python_file='gcd.py',
                                 right_template = right_template)
     self.assertEqual(True, result, "debugger 'step' command comparision")
     return
コード例 #6
0
 def test_macro(self):
     """Test set/show highlight"""
     if PYTHON_VERSION >= 3.8:
         right_template = '%s-38.right'
     else:
         right_template = None
     result = Mhelper.run_debugger(testname='highlight',
                                   dbgr_opts='--basename ' +
                                   '--highlight=plain --nx',
                                   python_file='gcd.py',
                                   right_template=right_template)
     self.assertEqual(True, result, "'highlight' command comparision")
     return
コード例 #7
0
 def test_step(self):
     """Test stepping, set skip, set trace"""
     result = Mhelper.run_debugger(testname="step", dbgr_opts="--basename --highlight=plain", python_file="gcd.py")
     self.assertEqual(True, result, "debugger 'step' command comparision")
     return