Debian Codegraph @

debian/patches/fix-import.patch

raw
1 Description: Fix import
2 Author: Thomas Goirand <[email protected]>
3 Forwarded: no
4 Last-Update: 2025-02-02
5
6 --- a/tests/test_idna_codec.py
7 +++ b/tests/test_idna_codec.py
8 @@ -17,7 +17,10 @@
9
10 class IDNACodecTests(unittest.TestCase):
11 def setUp(self):
12 - from . import test_idna
13 + try:
14 + from . import test_idna
15 + except ImportError:
16 + from tests import test_idna
17
18 self.idnatests = test_idna.IDNATests()
19 self.idnatests.setUp()