Description: Fix import Author: Thomas Goirand Forwarded: no Last-Update: 2025-02-02 --- a/tests/test_idna_codec.py +++ b/tests/test_idna_codec.py @@ -17,7 +17,10 @@ class IDNACodecTests(unittest.TestCase): def setUp(self): - from . import test_idna + try: + from . import test_idna + except ImportError: + from tests import test_idna self.idnatests = test_idna.IDNATests() self.idnatests.setUp()