예제 #1
0
    def setUp(self):
        super(TestBase, self).setUp()
        self._pathentry = PathEntry()

        self._filename = None
        if self.FILENAME is not None:
            self.set_source_file(self.FILENAME, self.SOURCE)
예제 #2
0
 def pathentry(self):
     try:
         return self._pathentry
     except AttributeError:
         self._pathentry = PathEntry()
         self.addCleanup(self._pathentry.cleanup)
         self._pathentry.install()
         return self._pathentry
예제 #3
0
    def setUp(self):
        super(TestBase, self).setUp()
        self._pathentry = PathEntry()
        # Tests run a new thread in the same process and use that
        # thread as the main thread -- the current thread which is
        # managing the test should be invisible to the debugger.
        import threading
        threading.current_thread().is_pydev_daemon_thread = True

        self._filename = None
        if self.FILENAME is not None:
            self.set_source_file(self.FILENAME, self.SOURCE)