Exemple #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()
Exemple #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)
Exemple #3
0
 def setUp(self):
     """Test setup."""
     ClewnTestCase.setUp(self)
     sys.argv.append('--simple')
Exemple #4
0
 def setUp(self):
     """Test setup."""
     ClewnTestCase.setUp(self)
     sys.argv.append('--gdb=async')