1import os 2 3from tests.package.test_python import TestPythonPackageBase 4 5 6class TestPythonPy3Pytest(TestPythonPackageBase): 7 __test__ = True 8 config = TestPythonPackageBase.config + \ 9 """ 10 BR2_PACKAGE_PYTHON3=y 11 BR2_PACKAGE_PYTHON_PYTEST=y 12 """ 13 sample_scripts = ["tests/package/sample_python_pytest.py"] 14 15 def run_sample_scripts(self): 16 for script in self.sample_scripts: 17 cmd = self.interpreter + " -m pytest " + os.path.basename(script) 18 self.assertRunOk(cmd, timeout=self.timeout) 19