diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index f0766b2e316..fe557ffa171 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -119,7 +119,7 @@ class ProxyTests(unittest.TestCase): self.env = support.EnvironmentVarGuard() # Delete all proxy related env vars for k in list(os.environ): - if 'proxy' not in k.lower(): + if 'proxy' in k.lower(): self.env.unset(k) def tearDown(self):