From 8051cdb6298a1916a28c9ff3ac5f897bdaa35c66 Mon Sep 17 00:00:00 2001 From: Daniel Kutik Date: Mon, 5 Dec 2022 10:10:14 +0100 Subject: [PATCH] test_manifest_config_properties: use assertEqual The method assertEquals is an deprecated alias for assertEqual. See: https://docs.python.org/3/library/unittest.html#deprecated-aliases Change-Id: Id94ba6d6055bdc18b87c53e8729902bb278855aa Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354035 Reviewed-by: Mike Frysinger Tested-by: Daniel Kutik --- tests/test_project.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_project.py b/tests/test_project.py index 7d07b705..7ab44984 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -480,13 +480,13 @@ class ManifestPropertiesFetchedCorrectly(unittest.TestCase): self.assertFalse(fakeproj.partial_clone) fakeproj.config.SetString('repo.depth', '48') - self.assertEquals(fakeproj.depth, '48') + self.assertEqual(fakeproj.depth, '48') fakeproj.config.SetString('repo.clonefilter', 'blob:limit=10M') - self.assertEquals(fakeproj.clone_filter, 'blob:limit=10M') + self.assertEqual(fakeproj.clone_filter, 'blob:limit=10M') fakeproj.config.SetString('repo.partialcloneexclude', 'third_party/big_repo') - self.assertEquals(fakeproj.partial_clone_exclude, 'third_party/big_repo') + self.assertEqual(fakeproj.partial_clone_exclude, 'third_party/big_repo') fakeproj.config.SetString('manifest.platform', 'auto') - self.assertEquals(fakeproj.manifest_platform, 'auto') + self.assertEqual(fakeproj.manifest_platform, 'auto')