<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_largefile.py, branch v2.2.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_largefile.py?h=v2.2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_largefile.py?h=v2.2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-04-30T19:24:59Z</updated>
<entry>
<title>file_truncate():  Backported 2.3 code so that file.truncate(n) works on</title>
<updated>2003-04-30T19:24:59Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-04-30T19:24:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fa90c3e468d2b112745f984a9881f944f407f18f'/>
<id>urn:sha1:fa90c3e468d2b112745f984a9881f944f407f18f</id>
<content type='text'>
Windows when n is too big to fit in a 32-bit int.  This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.
</content>
</entry>
<entry>
<title>backport largefile resource requirement for Mac OSX</title>
<updated>2003-03-31T17:42:52Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2003-03-31T17:42:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ddf625bd89e7f3152d2910f8ba8ab5649ab26c25'/>
<id>urn:sha1:ddf625bd89e7f3152d2910f8ba8ab5649ab26c25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Take Tim's work on file.truncate out of 2.2.1 again.</title>
<updated>2002-03-17T15:55:50Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-17T15:55:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98305a0d3413977368478d8ec94fd1c4dba6e999'/>
<id>urn:sha1:98305a0d3413977368478d8ec94fd1c4dba6e999</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport Tim's work on getting file.truncate working better on Win32.</title>
<updated>2002-03-16T18:19:33Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-16T18:19:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe69139f7e960c52aab54e2b6b1026ced68024d4'/>
<id>urn:sha1:fe69139f7e960c52aab54e2b6b1026ced68024d4</id>
<content type='text'>
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final
section!  I wonder which silly man wrote patch &lt;wink&gt;.
</content>
</entry>
<entry>
<title>Ignore SIGXFSZ. Fixes #490453.</title>
<updated>2001-12-11T17:57:26Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-12-11T17:57:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=df8adcd7ba210291c01a6c59b00139fe1e1a1f48'/>
<id>urn:sha1:df8adcd7ba210291c01a6c59b00139fe1e1a1f48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove two XXX comments that have been resolved.</title>
<updated>2001-09-10T15:03:48Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-10T15:03:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f49dcea2337686b38e98c221da40c860cc3969c1'/>
<id>urn:sha1:f49dcea2337686b38e98c221da40c860cc3969c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move the global variables 'size' and 'name' to the top -- these are</title>
<updated>2001-09-10T15:03:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-10T15:03:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a31ddbbd7bda1f09944534498ca88fe2d57e508a'/>
<id>urn:sha1:a31ddbbd7bda1f09944534498ca88fe2d57e508a</id>
<content type='text'>
"module parameters", and used in the Windows test (which crashed
because size was undefined -- sigh).
</content>
</entry>
<entry>
<title>Change the criteria for skipping the test.</title>
<updated>2001-09-10T13:34:12Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-10T13:34:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=47f40343b304cbd92dec796cdb2b647743a95c01'/>
<id>urn:sha1:47f40343b304cbd92dec796cdb2b647743a95c01</id>
<content type='text'>
If on Windows, we require the 'largefile' resource.

If not on Windows, we use a test that actually writes a byte beyond
the 2BG limit -- seeking alone is not sufficient, since on some
systems (e.g. Linux with glibc 2.2) the sytem call interface supports
large seek offsets but not all filesystem implementations do.

Note that on Windows, we do not use the write test: on Win2K, that
test can take a minute trying to zero all those blocks on disk, and on
Windows our code always supports large seek offsets (but again, not
all filesystems do).  This may mean that on Win95, or on certain other
backward filesystems, test_largefile will *fail*.
</content>
</entry>
<entry>
<title>Dubious assumptions:</title>
<updated>2001-09-06T01:17:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-06T01:17:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b8c0230a27443b65c23c666ad87ed905ec606663'/>
<id>urn:sha1:b8c0230a27443b65c23c666ad87ed905ec606663</id>
<content type='text'>
1. That seeking beyond the end of a file increases the size of a file.
2. That files so extended are magically filled with null bytes.

I find no support for either in the C std, and #2 in particular turns out
not to be true on Win32 (you apparently see whatever trash happened to be
on disk).  Left #1 intact, but changed the test to check only bytes it
explicitly wrote.  Also fiddled the "expected" vs "got" failure reports
to consistently use repr (%r) -- they weren't readable otherwise.
</content>
</entry>
<entry>
<title>Enable large file support on Win32 systems.</title>
<updated>2001-09-06T00:32:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-06T00:32:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6e13a562ae01a962612ca76f9afcc7211240236e'/>
<id>urn:sha1:6e13a562ae01a962612ca76f9afcc7211240236e</id>
<content type='text'>
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions &gt; 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
</content>
</entry>
</feed>
