File: f6f260f97df29500a531baf1b370c3e4e4f3dc76.patch

package info (click to toggle)
python-fs 2.4.16-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,944 kB
  • sloc: python: 13,048; makefile: 226; sh: 3
file content (24 lines) | stat: -rw-r--r-- 1,004 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
From: =?utf-8?b?VG9tw6HFoSBIcm7EjWlhcg==?= <thrnciar@redhat.com>
Date: Thu, 23 Mar 2023 13:23:12 +0100
Subject: [PATCH] Replace TestCase method aliases removed in Python 3.12

Bug: https://github.com/PyFilesystem/pyfilesystem2/issues/568
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058294
Forwarded: https://github.com/PyFilesystem/pyfilesystem2/pull/570
---
 fs/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/test.py b/fs/test.py
index 232666d..52beada 100644
--- a/fs/test.py
+++ b/fs/test.py
@@ -1082,7 +1082,7 @@ class FSTestCases(object):
         self.fs.makedirs("foo/bar/baz/")
 
         error_msg = "resource 'foo/bar/egg/test.txt' not found"
-        assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegexp)
+        assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegex)
         with assertRaisesRegex(errors.ResourceNotFound, error_msg):
             self.fs.remove("foo/bar/egg/test.txt")