summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-13 19:36:36 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-13 19:36:36 (GMT)
commit561f899d198c74516f0911a415f2914af3890576 (patch)
treef5f68a095310ba1dae2a76fa69019886da761fe3 /Lib/test
parent808b94eb453603fcfcd6208e0003cfe37ea3f604 (diff)
downloadcpython-561f899d198c74516f0911a415f2914af3890576.zip
cpython-561f899d198c74516f0911a415f2914af3890576.tar.gz
cpython-561f899d198c74516f0911a415f2914af3890576.tar.bz2
Use the keyword form of file() instead of open() to create TESTFN.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_descr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index ed37ae8..02ef0ef 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()