def tearDown(self):
     # cleanup task_self between tests to restore defaults
     task_cleanup()
Exemple #2
0
 def tearDown(self):
     """remove WorkerTree mock after each test"""
     task_cleanup()
     ClusterShell.Task.WorkerTree = WorkerTree
 def tearDown(self):
     """cleanup all tasks"""
     task_cleanup()
 def tearDown(self):
     """cleanup all tasks"""
     task_cleanup()
     sys.stdin = sys.__stdin__
 def tearDown(self):
     """cleanup all tasks"""
     task_cleanup()
Exemple #6
0
 def tearDown(self):
     """cleanup all tasks"""
     task_cleanup()
     sys.stdin = sys.__stdin__
Exemple #7
0
    def tearDown(self):
        """cleanup all tasks"""
        task_cleanup()

        # we played with fd_max: restore original nofile resource limits
        resource.setrlimit(resource.RLIMIT_NOFILE, (self.soft, self.hard))
 def tearDown(self):
     """remove WorkerTree mock after each test"""
     task_cleanup()
     ClusterShell.Task.WorkerTree = WorkerTree
Exemple #9
0
    def tearDown(self):
        """cleanup all tasks"""
        task_cleanup()

        # we played with fd_max: restore original nofile resource limits
        resource.setrlimit(resource.RLIMIT_NOFILE, (self.soft, self.hard))