Mercurial > hgrepos > Python > libs > ConfigMix
diff tests/test.py @ 355:260354e9a7f9
Avoid DeprecationWarning: assertEquals() -> assertEqual()
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 24 Jun 2021 20:26:33 +0200 |
| parents | 2b209bdf6995 |
| children | a5c792074ec9 |
line wrap: on
line diff
--- a/tests/test.py Thu Jun 24 19:41:44 2021 +0200 +++ b/tests/test.py Thu Jun 24 20:26:33 2021 +0200 @@ -415,12 +415,12 @@ def test09_None_filter_embedded(self): cfg = self._load() x = cfg.expand_variable("A{{non-existing|None}}Z") - self.assertEquals("AZ", x) + self.assertEqual("AZ", x) def test10_Empty_filtersingle(self): cfg = self._load() x = cfg.expand_variable("{{non-existing|Empty}}") - self.assertEquals("", x) + self.assertEqual("", x) class T02LoadAndMerge(_T02MixinLoadAndMerge, unittest.TestCase):
