[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.53,1.54
Tim Peters
tim_one@users.sourceforge.net
Thu, 13 Sep 2001 12:36:39 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv17236/python/Lib/test
Modified Files:
test_descr.py
Log Message:
Use the keyword form of file() instead of open() to create TESTFN.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** test_descr.py 2001/09/13 19:33:07 1.53
--- test_descr.py 2001/09/13 19:36:36 1.54
***************
*** 1672,1676 ****
return s
! f = open(TESTFN, 'w')
lines = ['a\n', 'b\n', 'c\n']
try:
--- 1672,1676 ----
return s
! f = file(name=TESTFN, mode='w')
lines = ['a\n', 'b\n', 'c\n']
try:
***************
*** 1717,1721 ****
raise TestFailed("expected TypeError from bogus keyword "
"argument to %r" % constructor)
!
def all():
lists()
--- 1717,1721 ----
raise TestFailed("expected TypeError from bogus keyword "
"argument to %r" % constructor)
!
def all():
lists()