<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_file.py, branch v2.4.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_file.py?h=v2.4.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_file.py?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-05-31T00:35:52Z</updated>
<entry>
<title>Add weakref support to array.array and file objects.</title>
<updated>2004-05-31T00:35:52Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-05-31T00:35:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa'/>
<id>urn:sha1:cb87bc8e7ee3a2ffd83dd1b12fcfa1c01aa740aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>If a file is opened with an explicit buffer size &gt;= 1, repeated</title>
<updated>2004-04-04T07:01:35Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2004-04-04T07:01:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e10ed3b86cf08211ef0c9c5408799195c2c1881'/>
<id>urn:sha1:4e10ed3b86cf08211ef0c9c5408799195c2c1881</id>
<content type='text'>
close() calls would attempt to free() the buffer already free()ed on
the first close().     [bug introduced with patch #788249]

Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.
</content>
</entry>
<entry>
<title>SF bug  801631:  file.truncate fault on windows.</title>
<updated>2003-09-07T03:30:18Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-09-07T03:30:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f1827cfaab46e4d9137fd72543c83977eba50cb0'/>
<id>urn:sha1:f1827cfaab46e4d9137fd72543c83977eba50cb0</id>
<content type='text'>
file_truncate():  C doesn't define what fflush(fp) does if fp is open
for update, and the preceding I/O operation on fp was input.  On Windows,
fflush() actually changes the current file position then.  Because
Windows doesn't support ftruncate() directly, this not only caused
Python's file.truncate() to change the file position (contra our docs),
it also caused the file not to change size.

Repaired by getting the initial file position at the start, restoring
it at the end, and tossing all the complicated micro-efficiency checks
trying to avoid "provably unnecessary" seeks.  file.truncate() can't
be a frequent operation, and seeking to the current file position has
got to be cheap anyway.

Bugfix candidate.
</content>
</entry>
<entry>
<title>Somewhere along the way, the softspace attr of file objects became read-</title>
<updated>2003-05-04T04:16:52Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-04T04:16:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=015dd821364f8c210baa9faf9d66dc766f9b591e'/>
<id>urn:sha1:015dd821364f8c210baa9faf9d66dc766f9b591e</id>
<content type='text'>
only.  Repaired, and added new tests to test_file.py.
</content>
</entry>
<entry>
<title>Add next and __iter__ to the list of file methods that should raise</title>
<updated>2002-08-06T15:58:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-08-06T15:58:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3c668c1256fb1ae3233af3f906891c4d8625c717'/>
<id>urn:sha1:3c668c1256fb1ae3233af3f906891c4d8625c717</id>
<content type='text'>
ValueError when called for a closed file.
</content>
</entry>
<entry>
<title>Complete the absolute import patch for the test suite.  All relative</title>
<updated>2002-07-30T23:27:12Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-30T23:27:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=408b6d34de2b1a6ba690557def435adce9314184'/>
<id>urn:sha1:408b6d34de2b1a6ba690557def435adce9314184</id>
<content type='text'>
imports of test modules now import from the test package.  Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.).  Also did a general
code cleanup to remove all "from test.test_support import *"'s.  Other
from...import *'s weren't changed.
</content>
</entry>
<entry>
<title>Patch #488073: AtheOS port.</title>
<updated>2002-06-11T06:22:31Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-06-11T06:22:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f90ae20354ceb501f0ba0b6459df17f1a8005a47'/>
<id>urn:sha1:f90ae20354ceb501f0ba0b6459df17f1a8005a47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>There is no TestError, use TestFailed appropriately</title>
<updated>2002-04-01T18:59:20Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-04-01T18:59:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b1295da59e90f85c71cd5591eff38376017f5e43'/>
<id>urn:sha1:b1295da59e90f85c71cd5591eff38376017f5e43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert file.readinto() to stop using METH_OLDARGS &amp; PyArg_Parse.</title>
<updated>2002-04-01T00:09:00Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-04-01T00:09:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=62f5a9d6c2e99b688e388d33c226e41174640082'/>
<id>urn:sha1:62f5a9d6c2e99b688e388d33c226e41174640082</id>
<content type='text'>
Add test for file.readinto().
</content>
</entry>
<entry>
<title>SF Patch #494867 test file methods</title>
<updated>2002-01-01T19:11:13Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-01-01T19:11:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=653d85fc86afa4b96bafcd1544d7ebf64e2ab6cd'/>
<id>urn:sha1:653d85fc86afa4b96bafcd1544d7ebf64e2ab6cd</id>
<content type='text'>
Test that the file methods raise ValueError when called on a closed file.
Test .isatty()
Test name, closed attributes
</content>
</entry>
</feed>
