test_python_can.py 617 B

1234567891011121314151617181920212223
  1. from tests.package.test_python import TestPythonPackageBase
  2. class TestPythonPy2Can(TestPythonPackageBase):
  3. __test__ = True
  4. config = TestPythonPackageBase.config + \
  5. """
  6. BR2_PACKAGE_PYTHON=y
  7. BR2_PACKAGE_PYTHON_CAN=y
  8. """
  9. sample_scripts = ["tests/package/sample_python_can.py"]
  10. timeout = 40
  11. class TestPythonPy3Can(TestPythonPackageBase):
  12. __test__ = True
  13. config = TestPythonPackageBase.config + \
  14. """
  15. BR2_PACKAGE_PYTHON3=y
  16. BR2_PACKAGE_PYTHON_CAN=y
  17. """
  18. sample_scripts = ["tests/package/sample_python_can.py"]
  19. timeout = 40