File: fix-assertEquals-is-removed.patch

package info (click to toggle)
python-testscenarios 0.5.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 224 kB
  • sloc: python: 541; makefile: 27
file content (26 lines) | stat: -rw-r--r-- 930 bytes parent folder | download
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: Fix assertEquals is removed
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1124202
Forwarded: no
Last-Update: 2025-12-29

--- python-testscenarios-0.5.0.orig/testscenarios/tests/test_scenarios.py
+++ python-testscenarios-0.5.0/testscenarios/tests/test_scenarios.py
@@ -193,7 +193,7 @@ class TestLoadTests(testtools.TestCase):
             [self.SampleTest('test_nothing')],
             None)
         result_tests = list(testtools.iterate_tests(suite))
-        self.assertEquals(
+        self.assertEqual(
             2,
             len(result_tests),
             result_tests)
@@ -206,7 +206,7 @@ class TestLoadTests(testtools.TestCase):
             unittest.TestLoader(),
             )
         result_tests = list(testtools.iterate_tests(suite))
-        self.assertEquals(
+        self.assertEqual(
             2,
             len(result_tests),
             result_tests)