[Python-checkins] python/dist/src/Lib/test string_tests.py,1.16,1.17 test_base64.py,1.1,1.2 test_binascii.py,1.13,1.14 test_isinstance.py,1.2,1.3 test_math.py,1.14,1.15 test_string.py,1.16,1.17 test_unicode.py,1.57,1.58
tim_one@sourceforge.net
tim_one@sourceforge.net
Thu, 23 May 2002 08:15:32 -0700
- Previous message: [Python-checkins] python/dist/src/Lib/email Charset.py,1.1,1.2 Header.py,1.2,1.3 Message.py,1.11,1.12 Utils.py,1.14,1.15 base64MIME.py,1.1,1.2 quopriMIME.py,1.1,1.2
- Next message: [Python-checkins] python/dist/src/Modules xxmodule.c,2.27,2.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23840/python/Lib/test
Modified Files:
string_tests.py test_base64.py test_binascii.py
test_isinstance.py test_math.py test_string.py test_unicode.py
Log Message:
Whitespace normalization.
Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** string_tests.py 20 May 2002 14:48:16 -0000 1.16
--- string_tests.py 23 May 2002 15:15:30 -0000 1.17
***************
*** 178,188 ****
# strip/lstrip/rstrip with unicode arg
if have_unicode:
! test('strip', 'xyzzyhelloxyzzy',
unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
! test('lstrip', 'xyzzyhelloxyzzy',
unicode('helloxyzzy', 'ascii'), unicode('xyz', 'ascii'))
test('rstrip', 'xyzzyhelloxyzzy',
unicode('xyzzyhello', 'ascii'), unicode('xyz', 'ascii'))
! test('strip', 'hello',
unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
--- 178,188 ----
# strip/lstrip/rstrip with unicode arg
if have_unicode:
! test('strip', 'xyzzyhelloxyzzy',
unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
! test('lstrip', 'xyzzyhelloxyzzy',
unicode('helloxyzzy', 'ascii'), unicode('xyz', 'ascii'))
test('rstrip', 'xyzzyhelloxyzzy',
unicode('xyzzyhello', 'ascii'), unicode('xyz', 'ascii'))
! test('strip', 'hello',
unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
Index: test_base64.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_base64.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_base64.py 18 May 2002 00:25:10 -0000 1.1
--- test_base64.py 23 May 2002 15:15:30 -0000 1.2
***************
*** 7,24 ****
def test_encode_string(self):
"""Testing encode string"""
! test_support.verify(base64.encodestring("www.python.org") ==
! "d3d3LnB5dGhvbi5vcmc=\n",
reason="www.python.org encodestring failed")
! test_support.verify(base64.encodestring("a") ==
! "YQ==\n",
reason="a encodestring failed")
! test_support.verify(base64.encodestring("ab") ==
! "YWI=\n",
reason="ab encodestring failed")
! test_support.verify(base64.encodestring("abc") ==
! "YWJj\n",
reason="abc encodestring failed")
! test_support.verify(base64.encodestring("") ==
! "",
reason="null encodestring failed")
test_support.verify(base64.encodestring(
--- 7,24 ----
def test_encode_string(self):
"""Testing encode string"""
! test_support.verify(base64.encodestring("www.python.org") ==
! "d3d3LnB5dGhvbi5vcmc=\n",
reason="www.python.org encodestring failed")
! test_support.verify(base64.encodestring("a") ==
! "YQ==\n",
reason="a encodestring failed")
! test_support.verify(base64.encodestring("ab") ==
! "YWI=\n",
reason="ab encodestring failed")
! test_support.verify(base64.encodestring("abc") ==
! "YWJj\n",
reason="abc encodestring failed")
! test_support.verify(base64.encodestring("") ==
! "",
reason="null encodestring failed")
test_support.verify(base64.encodestring(
***************
*** 30,43 ****
"""Testing decode string"""
test_support.verify(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n") ==
! "www.python.org",
reason="www.python.org decodestring failed")
test_support.verify(base64.decodestring("YQ==\n") ==
! "a",
reason="a decodestring failed")
test_support.verify(base64.decodestring("YWI=\n") ==
! "ab",
reason="ab decodestring failed")
test_support.verify(base64.decodestring("YWJj\n") ==
! "abc",
reason="abc decodestring failed")
test_support.verify(base64.decodestring(
--- 30,43 ----
"""Testing decode string"""
test_support.verify(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n") ==
! "www.python.org",
reason="www.python.org decodestring failed")
test_support.verify(base64.decodestring("YQ==\n") ==
! "a",
reason="a decodestring failed")
test_support.verify(base64.decodestring("YWI=\n") ==
! "ab",
reason="ab decodestring failed")
test_support.verify(base64.decodestring("YWJj\n") ==
! "abc",
reason="abc decodestring failed")
test_support.verify(base64.decodestring(
***************
*** 51,55 ****
else:
self.fail("expected a binascii.Error on null decode request")
!
def test_main():
test_support.run_unittest(Base64TestCase)
--- 51,55 ----
else:
self.fail("expected a binascii.Error on null decode request")
!
def test_main():
test_support.run_unittest(Base64TestCase)
***************
*** 57,59 ****
if __name__ == "__main__":
test_main()
-
--- 57,58 ----
Index: test_binascii.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binascii.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_binascii.py 20 May 2002 14:15:42 -0000 1.13
--- test_binascii.py 23 May 2002 15:15:30 -0000 1.14
***************
*** 114,118 ****
# Verify the treatment of Unicode strings
if have_unicode:
! verify(binascii.hexlify(unicode('a', 'ascii')) == '61',
"hexlify failed for Unicode")
--- 114,118 ----
# Verify the treatment of Unicode strings
if have_unicode:
! verify(binascii.hexlify(unicode('a', 'ascii')) == '61',
"hexlify failed for Unicode")
Index: test_isinstance.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_isinstance.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_isinstance.py 24 Apr 2002 03:33:02 -0000 1.2
--- test_isinstance.py 23 May 2002 15:15:30 -0000 1.3
***************
*** 105,109 ****
class S(C): pass
!
self.assertRaises(TypeError, issubclass, C(), S())
--- 105,109 ----
class S(C): pass
!
self.assertRaises(TypeError, issubclass, C(), S())
***************
*** 177,181 ****
def test_isinstance_normal(self):
! # normal instances
self.assertEqual(True, isinstance(Super(), Super))
self.assertEqual(False, isinstance(Super(), Child))
--- 177,181 ----
def test_isinstance_normal(self):
! # normal instances
self.assertEqual(True, isinstance(Super(), Super))
self.assertEqual(False, isinstance(Super(), Child))
***************
*** 187,191 ****
def test_isinstance_abstract(self):
! # abstract instances
self.assertEqual(True, isinstance(AbstractSuper(), AbstractSuper))
self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild))
--- 187,191 ----
def test_isinstance_abstract(self):
! # abstract instances
self.assertEqual(True, isinstance(AbstractSuper(), AbstractSuper))
self.assertEqual(False, isinstance(AbstractSuper(), AbstractChild))
***************
*** 197,201 ****
self.assertEqual(False, isinstance(AbstractChild(), Super))
self.assertEqual(False, isinstance(AbstractChild(), Child))
!
def test_subclass_normal(self):
# normal classes
--- 197,201 ----
self.assertEqual(False, isinstance(AbstractChild(), Super))
self.assertEqual(False, isinstance(AbstractChild(), Child))
!
def test_subclass_normal(self):
# normal classes
***************
*** 218,222 ****
self.assertEqual(False, issubclass(AbstractChild, Super))
self.assertEqual(False, issubclass(AbstractChild, Child))
!
--- 218,222 ----
self.assertEqual(False, issubclass(AbstractChild, Super))
self.assertEqual(False, issubclass(AbstractChild, Child))
!
Index: test_math.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_math.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** test_math.py 13 May 2002 03:55:01 -0000 1.14
--- test_math.py 23 May 2002 15:15:30 -0000 1.15
***************
*** 138,142 ****
testit('radians(180)', math.radians(180), math.pi)
testit('radians(90)', math.radians(90), math.pi/2)
! testit('radians(-45)', math.radians(-45), -math.pi/4)
print 'sin'
--- 138,142 ----
testit('radians(180)', math.radians(180), math.pi)
testit('radians(90)', math.radians(90), math.pi/2)
! testit('radians(-45)', math.radians(-45), -math.pi/4)
print 'sin'
Index: test_string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_string.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** test_string.py 17 Apr 2002 21:34:05 -0000 1.16
--- test_string.py 23 May 2002 15:15:30 -0000 1.17
***************
*** 39,43 ****
if value is input:
if verbose:
! print 'no'
print '*',f, `input`, `output`, `value`
return
--- 39,43 ----
if value is input:
if verbose:
! print 'no'
print '*',f, `input`, `output`, `value`
return
Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** test_unicode.py 22 Apr 2002 17:42:37 -0000 1.57
--- test_unicode.py 23 May 2002 15:15:30 -0000 1.58
***************
*** 69,73 ****
if value is input:
if verbose:
! print 'no'
print '*',f, `input`, `output`, `value`
return
--- 69,73 ----
if value is input:
if verbose:
! print 'no'
print '*',f, `input`, `output`, `value`
return
- Previous message: [Python-checkins] python/dist/src/Lib/email Charset.py,1.1,1.2 Header.py,1.2,1.3 Message.py,1.11,1.12 Utils.py,1.14,1.15 base64MIME.py,1.1,1.2 quopriMIME.py,1.1,1.2
- Next message: [Python-checkins] python/dist/src/Modules xxmodule.c,2.27,2.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]