File: 0001-Fix-deprecated-syntax.patch

package info (click to toggle)
python-memory-profiler 0.61-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 600 kB
  • sloc: python: 2,228; makefile: 33
file content (30 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download | duplicates (3)
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
27
28
29
30
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Sat, 15 Oct 2022 08:04:17 +0200
Subject: Fix deprecated syntax

---
 test/test_exit_code.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/test_exit_code.py b/test/test_exit_code.py
index bae2be9..3a37063 100644
--- a/test/test_exit_code.py
+++ b/test/test_exit_code.py
@@ -18,7 +18,7 @@ class TestExitCode(unittest.TestCase):
             ofile.write(s)
             ofile.flush()
             sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
-            self.assertRaisesRegexp(SystemExit, '0', self.run_action)
+            self.assertRaisesRegex(SystemExit, '0', self.run_action)
 
     def test_exit_code_fail(self):
         s = "raise RuntimeError('I am not working nicely')"
@@ -27,7 +27,7 @@ class TestExitCode(unittest.TestCase):
             ofile.write(s)
             ofile.flush()
             sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
-            self.assertRaisesRegexp(SystemExit, '1', self.run_action)
+            self.assertRaisesRegex(SystemExit, '1', self.run_action)
 
     def test_no_exit_code_success(self):
         s = "raise RuntimeError('I am not working nicely')"