File: test-Use-importlib-instead-of-imp.patch

package info (click to toggle)
pyxdg 0.28-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 784 kB
  • sloc: python: 4,584; makefile: 135; sh: 14
file content (22 lines) | stat: -rw-r--r-- 613 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
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 11 Dec 2022 07:35:13 +0100
Subject: test: Use importlib instead of imp

The usage of imp is deprecated.
---
 test/test_basedirectory.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_basedirectory.py b/test/test_basedirectory.py
index 954f573..e62f923 100644
--- a/test/test_basedirectory.py
+++ b/test/test_basedirectory.py
@@ -9,7 +9,7 @@ import stat
 try:
     reload
 except NameError:
-    from imp import reload
+    from importlib import reload
 
 class BaseDirectoryTest(unittest.TestCase):
     def setUp(self):