File: use-assertEqual-not-assertEquals.patch

package info (click to toggle)
python-logutils 0.3.5-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: python: 1,942; makefile: 79
file content (26 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Use assertEqual not assertEquals
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1058171
Forwarded: no
Last-Update: 2023-12-13

--- python-logutils-0.3.5.orig/tests/test_dictconfig.py
+++ python-logutils-0.3.5/tests/test_dictconfig.py
@@ -568,7 +568,7 @@ class ConfigDictTest(unittest.TestCase):
             raise RuntimeError()
         except RuntimeError:
             logging.exception("just testing")
-        self.assertEquals(h.formatted[0],
+        self.assertEqual(h.formatted[0],
             "ERROR:root:just testing\nGot a [RuntimeError]")
 
     def test_config4a_ok(self):
@@ -580,7 +580,7 @@ class ConfigDictTest(unittest.TestCase):
             raise RuntimeError()
         except RuntimeError:
             logging.exception("just testing")
-        self.assertEquals(h.formatted[0],
+        self.assertEqual(h.formatted[0],
             "ERROR:root:just testing\nGot a [RuntimeError]")
 
     def test_config5_ok(self):