[Python-checkins] python/dist/src/Lib/test test_bool.py,1.10,1.11
doerwalter@users.sourceforge.net
doerwalter@users.sourceforge.net
Thu, 01 May 2003 06:12:37 -0700
- Previous message: [Python-checkins] python/dist/src/Modules _tkinter.c,1.155,1.156
- Next message: [Python-checkins] python/dist/src/Lib/test test_StringIO.py,1.15,1.16 test___all__.py,1.29,1.30 test_base64.py,1.5,1.6 test_bisect.py,1.8,1.9 test_bool.py,1.11,1.12 test_builtin.py,1.18,1.19 test_bz2.py,1.13,1.14 test_calendar.py,1.4,1.5 test_call.py,1.3,1.4 test_cfgparser.py,1.19,1.20 test_charmapcodec.py,1.6,1.7 test_codeccallbacks.py,1.11,1.12 test_codecs.py,1.8,1.9 test_copy.py,1.7,1.8 test_cpickle.py,1.14,1.15 test_csv.py,1.5,1.6 test_dummy_thread.py,1.3,1.4 test_enumerate.py,1.3,1.4 test_filecmp.py,1.1,1.2 test_getargs2.py,1.4,1.5 test_grp.py,1.15,1.16 test_hexoct.py,1.3,1.4 test_hmac.py,1.6,1.7 test_isinstance.py,1.6,1.7 test_itertools.py,1.5,1.6 test_optparse.py,1.1,1.2 test_os.py,1.17,1.18 test_parser.py,1.16,1.17 test_pep277.py,1.5,1.6 test_pickle.py,1.17,1.18 test_posix.py,1.5,1.6 test_pow.py,1.17,1.18 test_profilehooks.py,1.9,1.10 test_pwd.py,1.16,1.17 test_re.py,1.41,1.42 test_richcmp.py,1.8,1.9 test_sets.py,1.23,1.24 test_shelve.py,1.4,1.5 test_shutil.py,1.1,1.2 test_socket.py,1.63,1.64 test_str.py,1.2,1.3 test_string.py,1.24,1.25 test_strptime.py,1.12,1.13 test_support.py,1.51,1.52 test_sys.py,1.6,1.7 test_tarfile.py,1.7,1.8 test_tempfile.py,1.13,1.14 test_textwrap.py,1.18,1.19 test_timeout.py,1.13,1.14 test_trace.py,1.8,1.9 test_ucn.py,1.13,1.14 test_unicode.py,1.82,1.83 test_unicodedata.py,1.8,1.9 test_univnewlines.py,1.4,1.5 test_urllib.py,1.12,1.13 test_urllibnet.py,1.1,1.2 test_userdict.py,1.14,1.15 test_userlist.py,1.8,1.9 test_userstring.py,1.10,1.11 test_weakref.py,1.22,1.23 test_xpickle.py,1.3,1.4 test_zipimport.py,1.7,1.8 test_zlib.py,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv16487/Lib/test
Modified Files:
test_bool.py
Log Message:
Consistently use test_support.foo everywhere.
Remove the last use of veris().
Remove now useless imports and functions.
Index: test_bool.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_bool.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_bool.py 27 Apr 2003 07:54:23 -0000 1.10
--- test_bool.py 1 May 2003 13:12:34 -0000 1.11
***************
*** 6,19 ****
import os
- from test.test_support import verbose, TestFailed, TESTFN, vereq, have_unicode
-
- def veris(a, b):
- if a is not b:
- raise TestFailed, "%r is %r" % (a, b)
-
- def verisnot(a, b):
- if a is b:
- raise TestFailed, "%r is %r" % (a, b)
-
class BoolTest(unittest.TestCase):
--- 6,9 ----
***************
*** 218,222 ****
self.assertIs("xyz".startswith("z"), False)
! if have_unicode:
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True)
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False)
--- 208,212 ----
self.assertIs("xyz".startswith("z"), False)
! if test_support.have_unicode:
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("z", 'ascii')), True)
self.assertIs(unicode("xyz", 'ascii').endswith(unicode("x", 'ascii')), False)
***************
*** 257,266 ****
def test_fileclosed(self):
try:
! f = file(TESTFN, "w")
self.assertIs(f.closed, False)
f.close()
self.assertIs(f.closed, True)
finally:
! os.remove(TESTFN)
def test_operator(self):
--- 247,256 ----
def test_fileclosed(self):
try:
! f = file(test_support.TESTFN, "w")
self.assertIs(f.closed, False)
f.close()
self.assertIs(f.closed, True)
finally:
! os.remove(test_support.TESTFN)
def test_operator(self):
***************
*** 289,294 ****
def test_marshal(self):
import marshal
! veris(marshal.loads(marshal.dumps(True)), True)
! veris(marshal.loads(marshal.dumps(False)), False)
def test_pickle(self):
--- 279,284 ----
def test_marshal(self):
import marshal
! self.assertIs(marshal.loads(marshal.dumps(True)), True)
! self.assertIs(marshal.loads(marshal.dumps(False)), False)
def test_pickle(self):
- Previous message: [Python-checkins] python/dist/src/Modules _tkinter.c,1.155,1.156
- Next message: [Python-checkins] python/dist/src/Lib/test test_StringIO.py,1.15,1.16 test___all__.py,1.29,1.30 test_base64.py,1.5,1.6 test_bisect.py,1.8,1.9 test_bool.py,1.11,1.12 test_builtin.py,1.18,1.19 test_bz2.py,1.13,1.14 test_calendar.py,1.4,1.5 test_call.py,1.3,1.4 test_cfgparser.py,1.19,1.20 test_charmapcodec.py,1.6,1.7 test_codeccallbacks.py,1.11,1.12 test_codecs.py,1.8,1.9 test_copy.py,1.7,1.8 test_cpickle.py,1.14,1.15 test_csv.py,1.5,1.6 test_dummy_thread.py,1.3,1.4 test_enumerate.py,1.3,1.4 test_filecmp.py,1.1,1.2 test_getargs2.py,1.4,1.5 test_grp.py,1.15,1.16 test_hexoct.py,1.3,1.4 test_hmac.py,1.6,1.7 test_isinstance.py,1.6,1.7 test_itertools.py,1.5,1.6 test_optparse.py,1.1,1.2 test_os.py,1.17,1.18 test_parser.py,1.16,1.17 test_pep277.py,1.5,1.6 test_pickle.py,1.17,1.18 test_posix.py,1.5,1.6 test_pow.py,1.17,1.18 test_profilehooks.py,1.9,1.10 test_pwd.py,1.16,1.17 test_re.py,1.41,1.42 test_richcmp.py,1.8,1.9 test_sets.py,1.23,1.24 test_shelve.py,1.4,1.5 test_shutil.py,1.1,1.2 test_socket.py,1.63,1.64 test_str.py,1.2,1.3 test_string.py,1.24,1.25 test_strptime.py,1.12,1.13 test_support.py,1.51,1.52 test_sys.py,1.6,1.7 test_tarfile.py,1.7,1.8 test_tempfile.py,1.13,1.14 test_textwrap.py,1.18,1.19 test_timeout.py,1.13,1.14 test_trace.py,1.8,1.9 test_ucn.py,1.13,1.14 test_unicode.py,1.82,1.83 test_unicodedata.py,1.8,1.9 test_univnewlines.py,1.4,1.5 test_urllib.py,1.12,1.13 test_urllibnet.py,1.1,1.2 test_userdict.py,1.14,1.15 test_userlist.py,1.8,1.9 test_userstring.py,1.10,1.11 test_weakref.py,1.22,1.23 test_xpickle.py,1.3,1.4 test_zipimport.py,1.7,1.8 test_zlib.py,1.22,1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]