示例#1
0
    def tearDown(self):
        """Cleanup stuff after the test."""
        ClewnTestCase.tearDown(self)

        # wait for the python script being debugged to terminate
        if self.pdb_script:
            self.pdb_script.wait()
示例#2
0
    def setUp(self):
        """Test setup."""
        ClewnTestCase.setUp(self)
        sys.argv.append('--pdb')

        # start the python script being debugged
        self.fnull = open(os.devnull, 'w')
        self.pdb_script = subprocess.Popen(
                                    ['python', './foobar.py'],
                                     stdout=self.fnull)
示例#3
0
 def setUp(self):
     """Test setup."""
     ClewnTestCase.setUp(self)
     sys.argv.append('--simple')
示例#4
0
文件: test_gdb.py 项目: the9ball/.vim
 def setUp(self):
     """Test setup."""
     ClewnTestCase.setUp(self)
     sys.argv.append('--gdb=async')