Commit 561f899d authored by Tim Peters's avatar Tim Peters

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

parent 808b94eb
...@@ -1671,7 +1671,7 @@ def inherits(): ...@@ -1671,7 +1671,7 @@ def inherits():
self.ateof = 1 self.ateof = 1
return s return s
f = open(TESTFN, 'w') f = file(name=TESTFN, mode='w')
lines = ['a\n', 'b\n', 'c\n'] lines = ['a\n', 'b\n', 'c\n']
try: try:
f.writelines(lines) f.writelines(lines)
...@@ -1716,7 +1716,7 @@ def keywords(): ...@@ -1716,7 +1716,7 @@ def keywords():
else: else:
raise TestFailed("expected TypeError from bogus keyword " raise TestFailed("expected TypeError from bogus keyword "
"argument to %r" % constructor) "argument to %r" % constructor)
def all(): def all():
lists() lists()
dicts() dicts()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment