Use the keyword form of file() instead of open() to create TESTFN.

This commit is contained in:
Tim Peters 2001-09-13 19:36:36 +00:00
parent 808b94eb45
commit 561f899d19
1 changed files with 2 additions and 2 deletions

View File

@ -1671,7 +1671,7 @@ def inherits():
self.ateof = 1
return s
f = open(TESTFN, 'w')
f = file(name=TESTFN, mode='w')
lines = ['a\n', 'b\n', 'c\n']
try:
f.writelines(lines)
@ -1716,7 +1716,7 @@ def keywords():
else:
raise TestFailed("expected TypeError from bogus keyword "
"argument to %r" % constructor)
def all():
lists()
dicts()