aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tests/codeparser.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-09 14:03:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-09 17:32:04 +0100
commitb60261bf8ade14aca31238b50c243c01adcabc59 (patch)
treead9659cdd2a185697461256b4c5311b12ac5696a /lib/bb/tests/codeparser.py
parent676a5f592e8507e81b8f748d58acfea7572f8796 (diff)
downloadbitbake-b60261bf8ade14aca31238b50c243c01adcabc59.tar.gz
bitbake-b60261bf8ade14aca31238b50c243c01adcabc59.tar.bz2
bitbake-b60261bf8ade14aca31238b50c243c01adcabc59.zip
tests: assertEquals -> assertEqual
The preferred form is assertEqual, assertEquals is deprecated and not present in python v3. This is v2.7 safe. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests/codeparser.py')
-rw-r--r--lib/bb/tests/codeparser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/tests/codeparser.py b/lib/bb/tests/codeparser.py
index bb820e40..5ea9d848 100644
--- a/lib/bb/tests/codeparser.py
+++ b/lib/bb/tests/codeparser.py
@@ -302,7 +302,7 @@ bb.data.getVar(a(), d, False)
deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
- self.assertEquals(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"]))
+ self.assertEqual(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"]))
shelldata = """
@@ -349,7 +349,7 @@ esac
deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
- self.assertEquals(deps, set(["somevar", "inverted"] + execs))
+ self.assertEqual(deps, set(["somevar", "inverted"] + execs))
def test_vardeps(self):
@@ -359,7 +359,7 @@ esac
deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
- self.assertEquals(deps, set(["oe_libinstall"]))
+ self.assertEqual(deps, set(["oe_libinstall"]))
def test_vardeps_expand(self):
self.d.setVar("oe_libinstall", "echo test")
@@ -368,7 +368,7 @@ esac
deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
- self.assertEquals(deps, set(["oe_libinstall"]))
+ self.assertEqual(deps, set(["oe_libinstall"]))
#Currently no wildcard support
#def test_vardeps_wildcards(self):