kumquat-buildroot/support/testing/tests/package/test_ipython.py
Ricardo Martincoski ef8d1f1b15 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 <ricardo.martincoski@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2017-10-06 18:56:49 +02:00

37 lines
927 B
Python

from tests.package.test_python import TestPythonBase
#
# The following pythong tests are not being used here:
#
# - version_test: IPython does not support --version option
#
# - 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 + \
"""
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_IPYTHON=y
"""
interpreter = "ipython"
def test_run(self):
self.login()
self.math_floor_test(40)
self.libc_time_test(40)
class TestIPythonPy3(TestPythonBase):
config = TestPythonBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_IPYTHON=y
"""
interpreter = "ipython"
def test_run(self):
self.login()
self.math_floor_test(40)
self.libc_time_test(40)