Skip to content

Commit 4b1ed62

Browse files
committed
[test] Make the super calls Python3 style
1 parent f729df2 commit 4b1ed62

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

tests/recipes/recipe_lib_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BaseTestForMakeRecipe(RecipeCtx):
2727
"""
2828

2929
def __new__(cls, *args):
30-
obj = super(BaseTestForMakeRecipe, cls).__new__(cls)
30+
obj = super().__new__(cls)
3131
if obj.recipe_name is not None:
3232
print(f"We are testing recipe: {obj.recipe_name}")
3333
obj.recipes.append(obj.recipe_name)

tests/recipes/test_libgeos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ def test_build_arch(
2424
):
2525
# We overwrite the base test method because we
2626
# want to avoid any file/directory creation
27-
super(TestLibgeosRecipe, self).test_build_arch()
27+
super().test_build_arch()
2828
# make sure that the mocked methods are actually called
2929
mock_makedirs.assert_called()

tests/recipes/test_libmysqlclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_build_arch(
2626
):
2727
# We overwrite the base test method because we need
2828
# to mock a little more (`sh.cp` and `sh.rm`)
29-
super(TestLibmysqlclientRecipe, self).test_build_arch()
29+
super().test_build_arch()
3030
# make sure that the mocked methods are actually called
3131
mock_sh_cp.assert_called()
3232
mock_sh_rm.assert_called()

tests/recipes/test_libpq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def test_build_arch(
2525
):
2626
# We overwrite the base test method because we need to mock a little
2727
# more with this recipe (`sh.cp`)
28-
super(TestLibpqRecipe, self).test_build_arch()
28+
super().test_build_arch()
2929
# make sure that the mocked methods are actually called
3030
mock_sh_cp.assert_called()

tests/recipes/test_libvorbis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def test_build_arch(
2626
):
2727
# We overwrite the base test method because we need to mock a little
2828
# more with this recipe (`sh.cp`)
29-
super(TestLibvorbisRecipe, self).test_build_arch()
29+
super().test_build_arch()
3030
# make sure that the mocked methods are actually called
3131
mock_sh_cp.assert_called()

tests/recipes/test_openal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ def test_build_arch(
5757
):
5858
# We overwrite the base test method because we need to mock a little
5959
# more with this recipe (`sh.cp` and `sh.rm`)
60-
super(TestOpenalRecipe, self).test_build_arch()
60+
super().test_build_arch()
6161
# make sure that the mocked methods are actually called
6262
mock_sh_cp.assert_called()

tests/recipes/test_openssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_build_arch(
2626
):
2727
# We overwrite the base test method because we need to mock a little
2828
# more with this recipe (`sh.cp` and `sh.rm`)
29-
super(TestOpensslRecipe, self).test_build_arch()
29+
super().test_build_arch()
3030
# make sure that the mocked methods are actually called
3131
mock_sh_patch.assert_called()
3232

tests/recipes/test_reportlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def setUp(self):
1212
"""
1313
Setups recipe and context.
1414
"""
15-
super(TestReportLabRecipe, self).setUp()
15+
super().setUp()
1616
self.recipe_dir = self.recipe.get_build_dir(self.arch.arch)
1717
ensure_dir(self.recipe_dir)
1818

0 commit comments

Comments
 (0)