From 4a8f9a117f6a784fe722b8b381368c41be86024a Mon Sep 17 00:00:00 2001 From: mahesh Date: Thu, 27 Apr 2017 12:51:10 +0530 Subject: made pep8 changes --- yaksh/evaluator_tests/test_c_cpp_evaluation.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'yaksh/evaluator_tests/test_c_cpp_evaluation.py') diff --git a/yaksh/evaluator_tests/test_c_cpp_evaluation.py b/yaksh/evaluator_tests/test_c_cpp_evaluation.py index 79227f5..b15f766 100644 --- a/yaksh/evaluator_tests/test_c_cpp_evaluation.py +++ b/yaksh/evaluator_tests/test_c_cpp_evaluation.py @@ -154,9 +154,8 @@ class CAssertionEvaluationTestCases(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 @@ -409,8 +408,8 @@ class CppStdIOEvaluationTestCases(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_only_stdout(self): # Given @@ -979,8 +978,9 @@ class CppHookEvaluationTestCases(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__': unittest.main() -- cgit