]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
switch to relative import for nanonameserver 495/head
authorBob Halley <halley@dnspython.org>
Mon, 1 Jun 2020 22:45:02 +0000 (15:45 -0700)
committerBob Halley <halley@dnspython.org>
Mon, 1 Jun 2020 22:45:02 +0000 (15:45 -0700)
tests/nanonameserver.py [moved from nanonameserver.py with 100% similarity]
tests/test_resolver.py

similarity index 100%
rename from nanonameserver.py
rename to tests/nanonameserver.py
index 202c272a9a4f7a2d242a8156caa4dfd8449c2a9f..87aebaac8de1218df3072891e11620efd7d9e815 100644 (file)
@@ -41,7 +41,7 @@ except socket.gaierror:
 # and threading, so try to import it and if it doesn't work, skip
 # those tests.
 try:
-    from nanonameserver import Server
+    from .nanonameserver import Server
     _nanonameserver_available = True
 except ImportError:
     _nanonameserver_available = False