2
1

test_ipython.py 927 B

123456789101112131415161718192021222324252627282930313233343536
  1. from tests.package.test_python import TestPythonBase
  2. #
  3. # The following pythong tests are not being used here:
  4. #
  5. # - version_test: IPython does not support --version option
  6. #
  7. # - zlib_test: IPython does not return a non-zero code the way CPython
  8. # does, so this test ends up being a false-negative
  9. class TestIPythonPy2(TestPythonBase):
  10. config = TestPythonBase.config + \
  11. """
  12. BR2_PACKAGE_PYTHON=y
  13. BR2_PACKAGE_PYTHON_IPYTHON=y
  14. """
  15. interpreter = "ipython"
  16. def test_run(self):
  17. self.login()
  18. self.math_floor_test(40)
  19. self.libc_time_test(40)
  20. class TestIPythonPy3(TestPythonBase):
  21. config = TestPythonBase.config + \
  22. """
  23. BR2_PACKAGE_PYTHON3=y
  24. BR2_PACKAGE_PYTHON_IPYTHON=y
  25. """
  26. interpreter = "ipython"
  27. def test_run(self):
  28. self.login()
  29. self.math_floor_test(40)
  30. self.libc_time_test(40)