From: Tim Peters Date: Thu, 13 Sep 2001 19:36:36 +0000 (+0000) Subject: Use the keyword form of file() instead of open() to create TESTFN. X-Git-Tag: v2.2.1c1~1814 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=561f899d198c74516f0911a415f2914af3890576;p=thirdparty%2FPython%2Fcpython.git Use the keyword form of file() instead of open() to create TESTFN. --- diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index ed37ae82ef1f..02ef0ef46f3c 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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()