From: Bob Halley Date: Mon, 1 Jun 2020 22:45:02 +0000 (-0700) Subject: switch to relative import for nanonameserver X-Git-Tag: v2.0.0rc1~128^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c791aa0cbc9203e1f1c1f2d49ea6f1bbba7bb88;p=thirdparty%2Fdnspython.git switch to relative import for nanonameserver --- diff --git a/nanonameserver.py b/tests/nanonameserver.py similarity index 100% rename from nanonameserver.py rename to tests/nanonameserver.py diff --git a/tests/test_resolver.py b/tests/test_resolver.py index 202c272a..87aebaac 100644 --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -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