diff options
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/python.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/python.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/meta/lib/oeqa/sdk/cases/python.py b/meta/lib/oeqa/sdk/cases/python.py index a334abce5f..5ea992b9f3 100644 --- a/meta/lib/oeqa/sdk/cases/python.py +++ b/meta/lib/oeqa/sdk/cases/python.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | 6 | ||
@@ -8,17 +10,6 @@ from oeqa.sdk.case import OESDKTestCase | |||
8 | from oeqa.utils.subprocesstweak import errors_have_output | 10 | from oeqa.utils.subprocesstweak import errors_have_output |
9 | errors_have_output() | 11 | errors_have_output() |
10 | 12 | ||
11 | class Python2Test(OESDKTestCase): | ||
12 | def setUp(self): | ||
13 | if not (self.tc.hasHostPackage("nativesdk-python-core") or | ||
14 | self.tc.hasHostPackage("python-core-native")): | ||
15 | raise unittest.SkipTest("No python package in the SDK") | ||
16 | |||
17 | def test_python2(self): | ||
18 | cmd = "python -c \"import codecs; print(codecs.encode('Uryyb, jbeyq', 'rot13'))\"" | ||
19 | output = self._run(cmd) | ||
20 | self.assertEqual(output, "Hello, world\n") | ||
21 | |||
22 | class Python3Test(OESDKTestCase): | 13 | class Python3Test(OESDKTestCase): |
23 | def setUp(self): | 14 | def setUp(self): |
24 | if not (self.tc.hasHostPackage("nativesdk-python3-core") or | 15 | if not (self.tc.hasHostPackage("nativesdk-python3-core") or |