From 9f95d06a39f67ceac62a6b6de8278fdb86d22559 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Fri, 15 May 2020 19:37:04 +0100 Subject: [PATCH] Remove Python 2 test.test_support import --- tests/checker/test_noproxy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/checker/test_noproxy.py b/tests/checker/test_noproxy.py index 80051ac6..48f0d678 100644 --- a/tests/checker/test_noproxy.py +++ b/tests/checker/test_noproxy.py @@ -16,11 +16,9 @@ """ Test proxy handling. """ +from test.support import EnvironmentVarGuard + from . import httpserver -try: - from test.support import EnvironmentVarGuard -except ImportError: # Python 3 - from test.test_support import EnvironmentVarGuard class TestProxy (httpserver.HttpServerTest): """Test no_proxy env var handling."""