From ef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Thu, 5 Oct 2017 18:42:09 -0300 Subject: support/testing: fix code style Fix the trivial warnings from flake8: - remove modules imported but unused; - use 2 lines before class or module level method; - remove blank line at end of file. Signed-off-by: Ricardo Martincoski Acked-by: "Yann E. MORIN" Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- support/testing/tests/package/test_ipython.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'support/testing/tests/package/test_ipython.py') diff --git a/support/testing/tests/package/test_ipython.py b/support/testing/tests/package/test_ipython.py index a943101372..3b291d9583 100644 --- a/support/testing/tests/package/test_ipython.py +++ b/support/testing/tests/package/test_ipython.py @@ -1,5 +1,3 @@ -import os - from tests.package.test_python import TestPythonBase # # The following pythong tests are not being used here: @@ -8,7 +6,8 @@ from tests.package.test_python import TestPythonBase # # - zlib_test: IPython does not return a non-zero code the way CPython # does, so this test ends up being a false-negative -# + + class TestIPythonPy2(TestPythonBase): config = TestPythonBase.config + \ """ @@ -22,6 +21,7 @@ class TestIPythonPy2(TestPythonBase): self.math_floor_test(40) self.libc_time_test(40) + class TestIPythonPy3(TestPythonBase): config = TestPythonBase.config + \ """ @@ -34,5 +34,3 @@ class TestIPythonPy3(TestPythonBase): self.login() self.math_floor_test(40) self.libc_time_test(40) - - -- cgit v1.2.3