diff options
author | Antoine Pitrou <pitrou@free.fr> | 2017-09-18 21:50:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-18 21:50:44 (GMT) |
commit | 88c60c9668f0aa732693517a60b851cc1dfce0cb (patch) | |
tree | 60a30eb883118025b6416f566e64598dac8b8a58 /Lib/test/test_xmlrpc.py | |
parent | b43c4caf81b10e5c7ebaeb3a712c6db584f60bbd (diff) | |
download | cpython-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_xmlrpc.py')
-rw-r--r-- | Lib/test/test_xmlrpc.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index c9099e0..15b7ae5 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -1175,13 +1175,7 @@ class GzipUtilTestCase(unittest.TestCase): class ServerProxyTestCase(unittest.TestCase): def setUp(self): unittest.TestCase.setUp(self) - if threading: - self.url = URL - else: - # Without threading, http_server() and http_multi_server() will not - # be executed and URL is still equal to None. 'http://' is a just - # enough to choose the scheme (HTTP) - self.url = 'http://' + self.url = URL def test_close(self): p = xmlrpclib.ServerProxy(self.url) |