summaryrefslogtreecommitdiff
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-04-13 18:42:35 +0000
committerGuido van Rossum <guido@python.org>2007-04-13 18:42:35 +0000
commit13633bb8c5bd2dbd2b9955539495ac6fb632776c (patch)
treeec0bc79cb915802f9e32b371b6b2cffdbfd4e52e /Lib/test/test_fileio.py
parent913dd0be52f28fbc5036d95722b80222880706fd (diff)
downloadcpython-git-13633bb8c5bd2dbd2b9955539495ac6fb632776c.tar.gz
Support name and mode attributes on all file types.
Don't read more than one line when reading text from a tty device. Add peek() and read1() methods. Return str instead of unicode when return ASCII characters in text mode.
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 6a78154335..bb98190af7 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -51,6 +51,7 @@ class AutoFileTests(unittest.TestCase):
self.assertEquals(f.mode, "w")
self.assertEquals(f.closed, False)
+ self.assertEquals(f.name, TESTFN)
# verify the attributes are readonly
for attr in 'mode', 'closed':