summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-09-18 21:50:44 (GMT)
committerGitHub <noreply@github.com>2017-09-18 21:50:44 (GMT)
commit88c60c9668f0aa732693517a60b851cc1dfce0cb (patch)
tree60a30eb883118025b6416f566e64598dac8b8a58 /Lib/test/test_httplib.py
parentb43c4caf81b10e5c7ebaeb3a712c6db584f60bbd (diff)
downloadcpython-88c60c9668f0aa732693517a60b851cc1dfce0cb.zip
cpython-88c60c9668f0aa732693517a60b851cc1dfce0cb.tar.gz
cpython-88c60c9668f0aa732693517a60b851cc1dfce0cb.tar.bz2
Trivial cleanups following bpo-31370 (#3649)
* Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index ab798a2..bec994e 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -5,6 +5,7 @@ import itertools
import os
import array
import socket
+import threading
import unittest
TestCase = unittest.TestCase
@@ -1077,8 +1078,6 @@ class BasicTest(TestCase):
def test_response_fileno(self):
# Make sure fd returned by fileno is valid.
- threading = support.import_module("threading")
-
serv = socket.socket(
socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
self.addCleanup(serv.close)