2
1

test_python_attrs.py 595 B

123456789101112131415161718192021
  1. from tests.package.test_python import TestPythonPackageBase
  2. class TestPythonPy2Attrs(TestPythonPackageBase):
  3. __test__ = True
  4. config = TestPythonPackageBase.config + \
  5. """
  6. BR2_PACKAGE_PYTHON=y
  7. BR2_PACKAGE_PYTHON_ATTRS=y
  8. """
  9. sample_scripts = ["tests/package/sample_python_attrs.py"]
  10. class TestPythonPy3Attrs(TestPythonPackageBase):
  11. __test__ = True
  12. config = TestPythonPackageBase.config + \
  13. """
  14. BR2_PACKAGE_PYTHON3=y
  15. BR2_PACKAGE_PYTHON_ATTRS=y
  16. """
  17. sample_scripts = ["tests/package/sample_python_attrs.py"]