diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-08 11:32:06 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-12 15:08:30 +0100 |
commit | c3587b7d1005c8564e54263768d0088afbb5c946 (patch) | |
tree | e39c75456d0b6304108399bc2d13a35b69e8c1dc /meta/lib/oeqa/selftest/cases/oelib/utils.py | |
parent | 652df69b026f1188b99efb7a2a237a44928ff6a9 (diff) | |
download | poky-c3587b7d1005c8564e54263768d0088afbb5c946.tar.gz |
oeqa/cases/oelib: Change default case class to unittest.case.TestCase
Some tests doesn't need call bitbake so it is better to use the
basic unittest case class.
[YOCTO #10828]
(From OE-Core rev: 4d01610f36eaee8da3126bb5045856279371fd17)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/oelib/utils.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oelib/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oelib/utils.py b/meta/lib/oeqa/selftest/cases/oelib/utils.py index 5bc5fffae7..9fb6c1576e 100644 --- a/meta/lib/oeqa/selftest/cases/oelib/utils.py +++ b/meta/lib/oeqa/selftest/cases/oelib/utils.py | |||
@@ -1,7 +1,7 @@ | |||
1 | from oeqa.selftest.case import OESelftestTestCase | 1 | from unittest.case import TestCase |
2 | from oe.utils import packages_filter_out_system, trim_version | 2 | from oe.utils import packages_filter_out_system, trim_version |
3 | 3 | ||
4 | class TestPackagesFilterOutSystem(OESelftestTestCase): | 4 | class TestPackagesFilterOutSystem(TestCase): |
5 | def test_filter(self): | 5 | def test_filter(self): |
6 | """ | 6 | """ |
7 | Test that oe.utils.packages_filter_out_system works. | 7 | Test that oe.utils.packages_filter_out_system works. |
@@ -31,7 +31,7 @@ class TestPackagesFilterOutSystem(OESelftestTestCase): | |||
31 | self.assertEqual(pkgs, ["foo-data"]) | 31 | self.assertEqual(pkgs, ["foo-data"]) |
32 | 32 | ||
33 | 33 | ||
34 | class TestTrimVersion(OESelftestTestCase): | 34 | class TestTrimVersion(TestCase): |
35 | def test_version_exception(self): | 35 | def test_version_exception(self): |
36 | with self.assertRaises(TypeError): | 36 | with self.assertRaises(TypeError): |
37 | trim_version(None, 2) | 37 | trim_version(None, 2) |