[Python-checkins] python/dist/src/Lib/test test_bool.py,1.12,1.13 test_socket.py,1.64,1.65 test_types.py,1.51,1.52 test_urllib.py,1.13,1.14
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Mon, 12 May 2003 13:19:41 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv1225/Lib/test
Modified Files:
test_bool.py test_socket.py test_types.py test_urllib.py
Log Message:
Whitespace normalization.
Index: test_bool.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bool.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_bool.py 1 May 2003 17:45:32 -0000 1.12
--- test_bool.py 12 May 2003 20:19:36 -0000 1.13
***************
*** 326,328 ****
if __name__ == "__main__":
test_main()
-
--- 326,327 ----
Index: test_socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket.py,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** test_socket.py 1 May 2003 17:45:49 -0000 1.64
--- test_socket.py 12 May 2003 20:19:37 -0000 1.65
***************
*** 333,337 ****
self.assertEquals('\xff\x00\xff\x00', g('255.0.255.0'))
self.assertEquals('\xaa\xaa\xaa\xaa', g('170.170.170.170'))
!
def testIPv6toString(self):
if not hasattr(socket, 'inet_pton'):
--- 333,337 ----
self.assertEquals('\xff\x00\xff\x00', g('255.0.255.0'))
self.assertEquals('\xaa\xaa\xaa\xaa', g('170.170.170.170'))
!
def testIPv6toString(self):
if not hasattr(socket, 'inet_pton'):
***************
*** 352,356 ****
f('45ef:76cb:1a:56ef:afeb:bac:1924:aeae')
)
!
def testStringToIPv4(self):
if not hasattr(socket, 'inet_ntop'):
--- 352,356 ----
f('45ef:76cb:1a:56ef:afeb:bac:1924:aeae')
)
!
def testStringToIPv4(self):
if not hasattr(socket, 'inet_ntop'):
***************
*** 363,367 ****
self.assertEquals('255.255.255.255', f('\xff\xff\xff\xff'))
self.assertEquals('1.2.3.4', f('\x01\x02\x03\x04'))
!
self.assertEquals('1.0.1.0', g('\x01\x00\x01\x00'))
self.assertEquals('170.85.170.85', g('\xaa\x55\xaa\x55'))
--- 363,367 ----
self.assertEquals('255.255.255.255', f('\xff\xff\xff\xff'))
self.assertEquals('1.2.3.4', f('\x01\x02\x03\x04'))
!
self.assertEquals('1.0.1.0', g('\x01\x00\x01\x00'))
self.assertEquals('170.85.170.85', g('\xaa\x55\xaa\x55'))
Index: test_types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_types.py,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** test_types.py 7 May 2003 01:28:47 -0000 1.51
--- test_types.py 12 May 2003 20:19:37 -0000 1.52
***************
*** 259,264 ****
# Verify that __getitem__ overrides are not recognized by __iter__
class T(tuple):
! def __getitem__(self, key):
! return str(key) + '!!!'
vereq(iter(T((1,2))).next(), 1)
--- 259,264 ----
# Verify that __getitem__ overrides are not recognized by __iter__
class T(tuple):
! def __getitem__(self, key):
! return str(key) + '!!!'
vereq(iter(T((1,2))).next(), 1)
***************
*** 456,461 ****
# Verify that __getitem__ overrides are not recognized by __iter__
class L(list):
! def __getitem__(self, key):
! return str(key) + '!!!'
vereq(iter(L([1,2])).next(), 1)
--- 456,461 ----
# Verify that __getitem__ overrides are not recognized by __iter__
class L(list):
! def __getitem__(self, key):
! return str(key) + '!!!'
vereq(iter(L([1,2])).next(), 1)
Index: test_urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllib.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_urllib.py 1 May 2003 17:45:53 -0000 1.13
--- test_urllib.py 12 May 2003 20:19:37 -0000 1.14
***************
*** 140,144 ****
class QuotingTests(unittest.TestCase):
"""Tests for urllib.quote() and urllib.quote_plus()
!
According to RFC 2396 ("Uniform Resource Identifiers), to escape a
character you write it as '%' + <2 character US-ASCII hex value>. The Python
--- 140,144 ----
class QuotingTests(unittest.TestCase):
"""Tests for urllib.quote() and urllib.quote_plus()
!
According to RFC 2396 ("Uniform Resource Identifiers), to escape a
character you write it as '%' + <2 character US-ASCII hex value>. The Python
***************
*** 147,151 ****
The various character sets specified are:
!
Reserved characters : ";/?:@&=+$,"
Have special meaning in URIs and must be escaped if not being used for
--- 147,151 ----
The various character sets specified are:
!
Reserved characters : ";/?:@&=+$,"
Have special meaning in URIs and must be escaped if not being used for
***************
*** 161,165 ****
Unwise : "{}|\^[]`"
Must be escaped
!
"""
--- 161,165 ----
Unwise : "{}|\^[]`"
Must be escaped
!
"""
***************
*** 207,211 ****
self.assertEqual(hexescape(char), result,
"using quote_plus(): "
! "%s should be escapes to %s, not %s" %
(char, hexescape(char), result))
del should_quote
--- 207,211 ----
self.assertEqual(hexescape(char), result,
"using quote_plus(): "
! "%s should be escapes to %s, not %s" %
(char, hexescape(char), result))
del should_quote
***************
*** 239,243 ****
class UnquotingTests(unittest.TestCase):
"""Tests for unquote() and unquote_plus()
!
See the doc string for quoting_Tests for details on quoting and such.
--- 239,243 ----
class UnquotingTests(unittest.TestCase):
"""Tests for unquote() and unquote_plus()
!
See the doc string for quoting_Tests for details on quoting and such.
***************
*** 280,284 ****
self.assertEqual(expect, result,
"using unquote_plus(): %s != %s" % (expect, result))
!
def test_unquoting_plus(self):
# Test difference between unquote() and unquote_plus()
--- 280,284 ----
self.assertEqual(expect, result,
"using unquote_plus(): %s != %s" % (expect, result))
!
def test_unquoting_plus(self):
# Test difference between unquote() and unquote_plus()
***************
*** 298,310 ****
def help_inputtype(self, given, test_type):
"""Helper method for testing different input types.
!
'given' must lead to only the pairs:
* 1st, 1
* 2nd, 2
* 3rd, 3
!
Test cannot assume anything about order. Docs make no guarantee and
have possible dictionary input.
!
"""
expect_somewhere = ["1st=1", "2nd=2", "3rd=3"]
--- 298,310 ----
def help_inputtype(self, given, test_type):
"""Helper method for testing different input types.
!
'given' must lead to only the pairs:
* 1st, 1
* 2nd, 2
* 3rd, 3
!
Test cannot assume anything about order. Docs make no guarantee and
have possible dictionary input.
!
"""
expect_somewhere = ["1st=1", "2nd=2", "3rd=3"]
***************
*** 405,409 ****
"url2pathname() failed; %s != %s" %
(expect, result))
!
--- 405,409 ----
"url2pathname() failed; %s != %s" %
(expect, result))
!