From 2c791aa0cbc9203e1f1c1f2d49ea6f1bbba7bb88 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Mon, 1 Jun 2020 15:45:02 -0700 Subject: [PATCH] switch to relative import for nanonameserver --- nanonameserver.py => tests/nanonameserver.py | 0 tests/test_resolver.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename nanonameserver.py => tests/nanonameserver.py (100%) 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 -- 2.47.3