summaryrefslogtreecommitdiff
path: root/yaksh/evaluator_tests/test_c_cpp_evaluation.py
diff options
context:
space:
mode:
authormahesh2017-04-27 12:51:10 +0530
committermahesh2017-04-27 12:51:10 +0530
commit4a8f9a117f6a784fe722b8b381368c41be86024a (patch)
tree3bceb7e437fbb7cb4dd73813f33c1502f6691de9 /yaksh/evaluator_tests/test_c_cpp_evaluation.py
parentc431c255738b741698adffcbf894930ae298b8c0 (diff)
downloadonline_test-4a8f9a117f6a784fe722b8b381368c41be86024a.tar.gz
online_test-4a8f9a117f6a784fe722b8b381368c41be86024a.tar.bz2
online_test-4a8f9a117f6a784fe722b8b381368c41be86024a.zip
made pep8 changes
Diffstat (limited to 'yaksh/evaluator_tests/test_c_cpp_evaluation.py')
-rw-r--r--yaksh/evaluator_tests/test_c_cpp_evaluation.py14
1 files changed, 7 insertions, 7 deletions
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()