summaryrefslogtreecommitdiffstats
path: root/bitbake/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-11 10:34:30 +0100
commita9d90f74050e2129171da09ca3427720887f67ee (patch)
treef3cb7cb259b1f6bec722fc1ed33d6069ee632029 /bitbake/lib/bb/tests/codeparser.py
parent654eadfa30624c62018665da618287b6cb5c7e3c (diff)
downloadpoky-a9d90f74050e2129171da09ca3427720887f67ee.tar.gz
bitbake: tests: assertEquals -> assertEqual
The preferred form is assertEqual, assertEquals is deprecated and not present in python v3. This is v2.7 safe. (Bitbake rev: b60261bf8ade14aca31238b50c243c01adcabc59) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/codeparser.py')
-rw-r--r--bitbake/lib/bb/tests/codeparser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py
index bb820e4037..5ea9d84803 100644
--- a/bitbake/lib/bb/tests/codeparser.py
+++ b/bitbake/lib/bb/tests/codeparser.py
@@ -302,7 +302,7 @@ bb.data.getVar(a(), d, False)
302 302
303 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) 303 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
304 304
305 self.assertEquals(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"])) 305 self.assertEqual(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"]))
306 306
307 307
308 shelldata = """ 308 shelldata = """
@@ -349,7 +349,7 @@ esac
349 349
350 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) 350 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
351 351
352 self.assertEquals(deps, set(["somevar", "inverted"] + execs)) 352 self.assertEqual(deps, set(["somevar", "inverted"] + execs))
353 353
354 354
355 def test_vardeps(self): 355 def test_vardeps(self):
@@ -359,7 +359,7 @@ esac
359 359
360 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) 360 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
361 361
362 self.assertEquals(deps, set(["oe_libinstall"])) 362 self.assertEqual(deps, set(["oe_libinstall"]))
363 363
364 def test_vardeps_expand(self): 364 def test_vardeps_expand(self):
365 self.d.setVar("oe_libinstall", "echo test") 365 self.d.setVar("oe_libinstall", "echo test")
@@ -368,7 +368,7 @@ esac
368 368
369 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d) 369 deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), self.d)
370 370
371 self.assertEquals(deps, set(["oe_libinstall"])) 371 self.assertEqual(deps, set(["oe_libinstall"]))
372 372
373 #Currently no wildcard support 373 #Currently no wildcard support
374 #def test_vardeps_wildcards(self): 374 #def test_vardeps_wildcards(self):