<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_largefile.py, branch v2.4.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_largefile.py?h=v2.4.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_largefile.py?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-08-26T11:59:27Z</updated>
<entry>
<title>test_largefile can leave its temp file open if one of many tests fail. On</title>
<updated>2003-08-26T11:59:27Z</updated>
<author>
<name>Jason Tishler</name>
<email>jason@tishler.net</email>
</author>
<published>2003-08-26T11:59:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=063606a0d5302d8a5530297a70494a9cad334e83'/>
<id>urn:sha1:063606a0d5302d8a5530297a70494a9cad334e83</id>
<content type='text'>
platforms (e.g., Cygwin) that are "particular" about open files, this will
cause other regression tests that use the same temp file to fail:

    $ ./python.exe -E -tt Lib/test/regrtest.py -l
    test_largefile test_mmap test_mutants
    test_largefile
    test test_largefile failed -- got -1794967295L, but expected 2500000001L
    test_mmap
    test test_mmap crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'
    test_mutants
    test test_mutants crashed -- exceptions.IOError: [Errno 13] Permission denied: '@test'

This patch solves the problem by adding missing "try/finally" blocks. Note
that the "large" size of this patch is due to many white space changes --
otherwise, the patch is small.

I tested this patch under Red Hat Linux 8.0 too.
</content>
</entry>
<entry>
<title>Require 'largefile' resource for Mac OSX as well.</title>
<updated>2002-12-02T10:42:30Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-12-02T10:42:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b10dc3554f9820b21d4c95bc3f1c1e6f5d4bf94'/>
<id>urn:sha1:3b10dc3554f9820b21d4c95bc3f1c1e6f5d4bf94</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of relative imports in all unittests.  Now anything that</title>
<updated>2002-07-23T19:04:11Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=04f357cffef6d764f2f0ff2671dabde75ec250d1'/>
<id>urn:sha1:04f357cffef6d764f2f0ff2671dabde75ec250d1</id>
<content type='text'>
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
</content>
</entry>
<entry>
<title>Change Windows file.truncate() to (a) restore the original file position,</title>
<updated>2002-03-12T03:04:44Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-03-12T03:04:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f01b680c85853948591c28ceae356760e7c7c33'/>
<id>urn:sha1:8f01b680c85853948591c28ceae356760e7c7c33</id>
<content type='text'>
and (b) stop trying to prevent file growth.

Beef up the file.truncate() docs.

Change test_largefile.py to stop assuming that f.truncate() moves the
file pointer to the truncation point, and to verify instead that it leaves
the file position alone.  Remove the test for what happens when a
specified size exceeds the original file size (it's ill-defined, according
to the Single Unix Spec).
</content>
</entry>
<entry>
<title>file_truncate():  provide full "large file" support on Windows, by</title>
<updated>2002-03-11T00:24:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-03-11T00:24:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fb05db2cae72bb0c3f2181d6cb0c20d990c23f6c'/>
<id>urn:sha1:fb05db2cae72bb0c3f2181d6cb0c20d990c23f6c</id>
<content type='text'>
dropping MS's inadequate _chsize() function.  This was inspired by
SF patch 498109 ("fileobject truncate support for win32"), which I
rejected.

libstdtypes.tex:  Someone who knows should update the availability
blurb.  For example, if it's available on Linux, it would be good to
say so.

test_largefile:  Uncommented the file.truncate() tests, and reworked to
do more.  The old comment about "permission errors" in the truncation
tests under Windows was almost certainly due to that the file wasn't open
for *write* access at this point, so of course MS wouldn't let you
truncate it.  I'd be appalled if a Unixish system did.

CAUTION:  Someone should run this test on Linux (etc) too.  The
truncation part was commented out before.  Note that test_largefile isn't
run by default.
</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>
</feed>
