瀏覽代碼

support/testing: drop python2 tests

Python2 for the target is about to get removed, so drop the tests using it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Peter Korsgaard 3 年之前
父節點
當前提交
f697096a77

+ 0 - 6
support/testing/tests/package/sample_python_subprocess32.py

@@ -1,6 +0,0 @@
-import subprocess32
-
-output = subprocess32.check_output(["ls", "-l", "/dev/null"])
-print(output)
-assert("/dev/null" in output)
-assert("No such" not in output)

+ 0 - 8
support/testing/tests/package/test_bmap_tools.py

@@ -45,14 +45,6 @@ class TestBmapTools(BRTest):
         self.assertRunOk(cmd, timeout=20)
         self.assertRunOk(cmd, timeout=20)
 
 
 
 
-class TestPy2BmapTools(TestBmapTools):
-    __test__ = True
-    config = TestBmapTools.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        """
-
-
 class TestPy3BmapTools(TestBmapTools):
 class TestPy3BmapTools(TestBmapTools):
     __test__ = True
     __test__ = True
     config = TestBmapTools.config + \
     config = TestBmapTools.config + \

+ 0 - 8
support/testing/tests/package/test_crudini.py

@@ -33,14 +33,6 @@ class TestCrudiniBase(TestPythonPackageBase):
         self.assertEqual(out, ['this-is-the-magic-value'])
         self.assertEqual(out, ['this-is-the-magic-value'])
 
 
 
 
-class TestCrudiniPy2(TestCrudiniBase):
-    __test__ = True
-    config = TestCrudiniBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        """
-
-
 class TestCrudiniPy3(TestCrudiniBase):
 class TestCrudiniPy3(TestCrudiniBase):
     __test__ = True
     __test__ = True
     config = TestCrudiniBase.config + \
     config = TestCrudiniBase.config + \

+ 0 - 12
support/testing/tests/package/test_libftdi1.py

@@ -1,18 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Libftdi1(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_LIBFTDI1=y
-        BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS=y
-        """
-    sample_scripts = ["tests/package/sample_libftdi1.py"]
-    timeout = 40
-
-
 class TestPythonPy3Libftdi1(TestPythonPackageBase):
 class TestPythonPy3Libftdi1(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 14
support/testing/tests/package/test_python.py

@@ -39,20 +39,6 @@ class TestPythonBase(infra.basetest.BRTest):
         self.assertEqual(exit_code, 1)
         self.assertEqual(exit_code, 1)
 
 
 
 
-class TestPython2(TestPythonBase):
-    config = TestPythonBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        """
-
-    def test_run(self):
-        self.login()
-        self.version_test("Python 2")
-        self.math_floor_test()
-        self.libc_time_test()
-        self.zlib_test()
-
-
 class TestPython3(TestPythonBase):
 class TestPython3(TestPythonBase):
     config = TestPythonBase.config + \
     config = TestPythonBase.config + \
         """
         """

+ 0 - 9
support/testing/tests/package/test_python_argh.py

@@ -27,15 +27,6 @@ class TestPythonArgh(TestPythonPackageBase):
         self.assertEqual(exit_code, 2)
         self.assertEqual(exit_code, 2)
 
 
 
 
-class TestPythonPy2Argh(TestPythonArgh):
-    __test__ = True
-    config = TestPythonArgh.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_ARGH=y
-        """
-
-
 class TestPythonPy3Argh(TestPythonArgh):
 class TestPythonPy3Argh(TestPythonArgh):
     __test__ = True
     __test__ = True
     config = TestPythonArgh.config + \
     config = TestPythonArgh.config + \

+ 0 - 10
support/testing/tests/package/test_python_bitstring.py

@@ -1,16 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Bitstring(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_BITSTRING=y
-        """
-    sample_scripts = ["tests/package/sample_python_bitstring.py"]
-
-
 class TestPythonPy3Bitstring(TestPythonPackageBase):
 class TestPythonPy3Bitstring(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_can.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Can(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_CAN=y
-        """
-    sample_scripts = ["tests/package/sample_python_can.py"]
-    timeout = 40
-
-
 class TestPythonPy3Can(TestPythonPackageBase):
 class TestPythonPy3Can(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_cbor.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Cbor(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_CBOR=y
-        """
-    sample_scripts = ["tests/package/sample_python_cbor_enc.py",
-                      "tests/package/sample_python_cbor_dec.py"]
-
-
 class TestPythonPy3Cbor(TestPythonPackageBase):
 class TestPythonPy3Cbor(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 9
support/testing/tests/package/test_python_click.py

@@ -26,15 +26,6 @@ class TestPythonClick(TestPythonPackageBase):
         self.assertEqual(exit_code, 2)
         self.assertEqual(exit_code, 2)
 
 
 
 
-class TestPythonPy2Click(TestPythonClick):
-    __test__ = True
-    config = TestPythonClick.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_CLICK=y
-        """
-
-
 class TestPythonPy3Click(TestPythonClick):
 class TestPythonPy3Click(TestPythonClick):
     __test__ = True
     __test__ = True
     config = TestPythonClick.config + \
     config = TestPythonClick.config + \

+ 0 - 10
support/testing/tests/package/test_python_constantly.py

@@ -1,16 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Constantly(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_CONSTANTLY=y
-        """
-    sample_scripts = ["tests/package/sample_python_constantly.py"]
-
-
 class TestPythonPy3Constantly(TestPythonPackageBase):
 class TestPythonPy3Constantly(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 10
support/testing/tests/package/test_python_gnupg.py

@@ -1,16 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2GnuPG(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_GNUPG=y
-        """
-    sample_scripts = ["tests/package/sample_python_gnupg.py"]
-
-
 class TestPythonPy3GnuPG(TestPythonPackageBase):
 class TestPythonPy3GnuPG(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_incremental.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Incremental(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_INCREMENTAL=y
-        """
-    sample_scripts = ["tests/package/sample_python_incremental.py"]
-    timeout = 30
-
-
 class TestPythonPy3Incremental(TestPythonPackageBase):
 class TestPythonPy3Incremental(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_passlib.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Passlib(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_PASSLIB=y
-        """
-    sample_scripts = ["tests/package/sample_python_passlib.py"]
-    timeout = 30
-
-
 class TestPythonPy3Passlib(TestPythonPackageBase):
 class TestPythonPy3Passlib(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 10
support/testing/tests/package/test_python_pexpect.py

@@ -1,16 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Pexpect(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_PEXPECT=y
-        """
-    sample_scripts = ["tests/package/sample_python_pexpect.py"]
-
-
 class TestPythonPy3Pexpect(TestPythonPackageBase):
 class TestPythonPy3Pexpect(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_pynacl.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Pynacl(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_PYNACL=y
-        """
-    sample_scripts = ["tests/package/sample_python_pynacl.py"]
-    timeout = 10
-
-
 class TestPythonPy3Pynacl(TestPythonPackageBase):
 class TestPythonPy3Pynacl(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_pyyaml.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Pyyaml(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_PYYAML=y
-        """
-    sample_scripts = ["tests/package/sample_python_pyyaml_enc.py",
-                      "tests/package/sample_python_pyyaml_dec.py"]
-
-
 class TestPythonPy3Pyyaml(TestPythonPackageBase):
 class TestPythonPy3Pyyaml(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \

+ 0 - 11
support/testing/tests/package/test_python_subprocess32.py

@@ -1,11 +0,0 @@
-from tests.package.test_python import TestPythonPackageBase
-
-
-class TestPythonPy2Subprocess32(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_SUBPROCESS32=y
-        """
-    sample_scripts = ["tests/package/sample_python_subprocess32.py"]

+ 0 - 11
support/testing/tests/package/test_python_ubjson.py

@@ -1,17 +1,6 @@
 from tests.package.test_python import TestPythonPackageBase
 from tests.package.test_python import TestPythonPackageBase
 
 
 
 
-class TestPythonPy2Ubjson(TestPythonPackageBase):
-    __test__ = True
-    config = TestPythonPackageBase.config + \
-        """
-        BR2_PACKAGE_PYTHON=y
-        BR2_PACKAGE_PYTHON_UBJSON=y
-        """
-    sample_scripts = ["tests/package/sample_python_ubjson_enc.py",
-                      "tests/package/sample_python_ubjson_dec.py"]
-
-
 class TestPythonPy3Ubjson(TestPythonPackageBase):
 class TestPythonPy3Ubjson(TestPythonPackageBase):
     __test__ = True
     __test__ = True
     config = TestPythonPackageBase.config + \
     config = TestPythonPackageBase.config + \