test_python_txaio.py 648 B

12345678910111213141516171819202122
  1. from tests.package.test_python import TestPythonPackageBase
  2. class TestPythonPy2Txaio(TestPythonPackageBase):
  3. __test__ = True
  4. config = TestPythonPackageBase.config + \
  5. """
  6. BR2_PACKAGE_PYTHON=y
  7. BR2_PACKAGE_PYTHON_TXAIO=y
  8. BR2_PACKAGE_PYTHON_TWISTED=y
  9. """
  10. sample_scripts = ["tests/package/sample_python_txaio_twisted.py"]
  11. class TestPythonPy3Txaio(TestPythonPackageBase):
  12. __test__ = True
  13. config = TestPythonPackageBase.config + \
  14. """
  15. BR2_PACKAGE_PYTHON3=y
  16. BR2_PACKAGE_PYTHON_TXAIO=y
  17. """
  18. sample_scripts = ["tests/package/sample_python_txaio_asyncio.py"]