diff options
author | mahesh | 2017-04-27 12:51:10 +0530 |
---|---|---|
committer | mahesh | 2017-04-27 12:51:10 +0530 |
commit | 4a8f9a117f6a784fe722b8b381368c41be86024a (patch) | |
tree | 3bceb7e437fbb7cb4dd73813f33c1502f6691de9 /yaksh/evaluator_tests/test_bash_evaluation.py | |
parent | c431c255738b741698adffcbf894930ae298b8c0 (diff) | |
download | online_test-4a8f9a117f6a784fe722b8b381368c41be86024a.tar.gz online_test-4a8f9a117f6a784fe722b8b381368c41be86024a.tar.bz2 online_test-4a8f9a117f6a784fe722b8b381368c41be86024a.zip |
made pep8 changes
Diffstat (limited to 'yaksh/evaluator_tests/test_bash_evaluation.py')
-rw-r--r-- | yaksh/evaluator_tests/test_bash_evaluation.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/yaksh/evaluator_tests/test_bash_evaluation.py b/yaksh/evaluator_tests/test_bash_evaluation.py index 352e95f..8bb8c81 100644 --- a/yaksh/evaluator_tests/test_bash_evaluation.py +++ b/yaksh/evaluator_tests/test_bash_evaluation.py @@ -107,10 +107,8 @@ class BashAssertionEvaluationTestCases(EvaluatorBaseTest): self.assert_correct_output(self.timeout_msg, result.get("error")) parent_proc = Process(os.getpid()).children() if parent_proc: - self.assertFalse(any(Process(parent_proc[0].pid)\ - .children(recursive=True))) - - + children_procs = Process(parent_proc[0].pid) + self.assertFalse(any(children_procs.children(recursive=True))) def test_file_based_assert(self): # Given @@ -538,9 +536,8 @@ class BashHookEvaluationTestCases(EvaluatorBaseTest): self.assert_correct_output(self.timeout_msg, result.get('error')) parent_proc = Process(os.getpid()).children() if parent_proc: - self.assertFalse(any(Process(parent_proc[0].pid)\ - .children(recursive=True))) - + children_procs = Process(parent_proc[0].pid) + self.assertFalse(any(children_procs.children(recursive=True))) if __name__ == '__main__': |