summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-19 10:58:56 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-19 10:58:56 +0300
commite130a52d8a60229f53c8bc2ea7a1f51ee592bbd7 (patch)
treeb7f128d5f626c78d57d53812a5953c6eb56cca72 /Lib/test
parenta5a9a9c3696af0a4a0df74618e63a4d47a62e00f (diff)
downloadcpython-git-e130a52d8a60229f53c8bc2ea7a1f51ee592bbd7.tar.gz
Remove duplication.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2.py2
-rw-r--r--Lib/test/test_urlparse.py2
-rw-r--r--Lib/test/test_xmlrpc.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 03cd927498..83bb0a9cb2 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -878,7 +878,7 @@ class HandlerTests(unittest.TestCase):
def test_http_doubleslash(self):
# Checks the presence of any unnecessary double slash in url does not
# break anything. Previously, a double slash directly after the host
- # could could cause incorrect parsing.
+ # could cause incorrect parsing.
h = urllib.request.AbstractHTTPHandler()
o = h.parent = MockOpener()
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 4de190b99a..a6e7ee8e1c 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -9,7 +9,7 @@ RFC2396_BASE = "http://a/b/c/d;p?q"
RFC3986_BASE = 'http://a/b/c/d;p?q'
SIMPLE_BASE = 'http://a/b/c/d'
-# A list of test cases. Each test case is a a two-tuple that contains
+# A list of test cases. Each test case is a two-tuple that contains
# a string with the query and a dictionary with the expected result.
parse_qsl_test_cases = [
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 04e762ad74..4ccc6ff9b6 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -295,7 +295,7 @@ def http_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
- #trying to connect to to "localhost" using all address families, which
+ #trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)
@@ -354,7 +354,7 @@ def http_multi_server(evt, numrequests, requestHandler=None):
global ADDR, PORT, URL
ADDR, PORT = serv.socket.getsockname()
#connect to IP address directly. This avoids socket.create_connection()
- #trying to connect to to "localhost" using all address families, which
+ #trying to connect to "localhost" using all address families, which
#causes slowdown e.g. on vista which supports AF_INET6. The server listens
#on AF_INET only.
URL = "http://%s:%d"%(ADDR, PORT)