<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_zipimport.py, branch 2.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_zipimport.py?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_zipimport.py?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-11-18T23:04:28Z</updated>
<entry>
<title>Backport of fix for [ 765456 ]: testAFakeZlib failed on platforms that use</title>
<updated>2003-11-18T23:04:28Z</updated>
<author>
<name>Just van Rossum</name>
<email>just@letterror.com</email>
</author>
<published>2003-11-18T23:04:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e00b9b56fe8df010c623f04f0c4ddf5b1f468eff'/>
<id>urn:sha1:e00b9b56fe8df010c623f04f0c4ddf5b1f468eff</id>
<content type='text'>
a statically linked zlib module, but since the problem it tests can't
exist on these systems, simply skip it then.
</content>
</entry>
<entry>
<title>Change the zipimport implementation to accept files containing</title>
<updated>2003-07-22T18:10:15Z</updated>
<author>
<name>Thomas Heller</name>
<email>theller@ctypes.org</email>
</author>
<published>2003-07-22T18:10:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=354e3d90d346afdc6c70211b130aa76bb18e19ed'/>
<id>urn:sha1:354e3d90d346afdc6c70211b130aa76bb18e19ed</id>
<content type='text'>
arbitrary bytes before the actual zip compatible archive.  Zipfiles
containing comments at the end of the file are still not supported.

Add a testcase to test_zipimport, and update NEWS.

This closes sf #775637 and sf #669036.
</content>
</entry>
<entry>
<title>Patch #734231: Update RiscOS support. In particular, correct</title>
<updated>2003-05-10T07:36:56Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2003-05-10T07:36:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a94568a7535de60f1144e4eea0d027b87017a4b4'/>
<id>urn:sha1:a94568a7535de60f1144e4eea0d027b87017a4b4</id>
<content type='text'>
riscospath.extsep, and use os.extsep throughout.
</content>
</entry>
<entry>
<title>Combine the functionality of test_support.run_unittest()</title>
<updated>2003-05-01T17:45:56Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2003-05-01T17:45:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=21d3a32b99c5763444c34c189ef653ac9745f3c4'/>
<id>urn:sha1:21d3a32b99c5763444c34c189ef653ac9745f3c4</id>
<content type='text'>
and test_support.run_classtests() into run_unittest()
and use it wherever possible.

Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.

From SF patch #662807.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2003-02-19T02:35:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-02-19T02:35:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f2715e076435b74638acb81512c2ee014f75aea2'/>
<id>urn:sha1:f2715e076435b74638acb81512c2ee014f75aea2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use correct function name to PyArg_ParseTuple("is_package").</title>
<updated>2003-02-17T18:05:20Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-02-17T18:05:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5c1ba53f8ca219a22d964324abb76a055ad19feb'/>
<id>urn:sha1:5c1ba53f8ca219a22d964324abb76a055ad19feb</id>
<content type='text'>
Fix off-by-1 error in normalize_line_endings():
  when *p == '\0' the NUL was copied into q and q was auto-incremented,
  the loop was broken out of,
  then a newline was appended followed by a NUL.
  So the function, in effect, was strcpy() but added two extra chars
  which was caught by obmalloc in debug mode, since there was only
  room for 1 additional newline.

Get test working under regrtest (added test_main).
</content>
</entry>
<entry>
<title>cleaned up Jack's Mac OS9 changes</title>
<updated>2003-01-09T22:27:10Z</updated>
<author>
<name>Just van Rossum</name>
<email>just@letterror.com</email>
</author>
<published>2003-01-09T22:27:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6706c4d5fdea06db75cec76bd4815d9cecea108f'/>
<id>urn:sha1:6706c4d5fdea06db75cec76bd4815d9cecea108f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Various tweaks to make the test work on the Mac.</title>
<updated>2003-01-08T16:37:03Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2003-01-08T16:37:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=472e7db5c0455b6d80326d75f619f7c0bfb3070f'/>
<id>urn:sha1:472e7db5c0455b6d80326d75f619f7c0bfb3070f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix for bug #661136</title>
<updated>2003-01-03T11:18:56Z</updated>
<author>
<name>Just van Rossum</name>
<email>just@letterror.com</email>
</author>
<published>2003-01-03T11:18:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a3129c14866f21ce3cee053c085db374cb61b78'/>
<id>urn:sha1:9a3129c14866f21ce3cee053c085db374cb61b78</id>
<content type='text'>
Lesson learned: kids should not be allowed to use API's starting
with an underscore :-/
zipimport in 2.3a1 is even more broken than I thought: I attemped
to _PyString_Resize a string created by PyString_FromStringAndSize,
which fails for strings with length 0 or 1 since the latter returns
an interned string in those cases. This would cause a SystemError
with empty source files (and no matching pyc) in the zip archive.
I rewrote the offending code to simply allocate a new buffer and
avoid _PyString_Resize altogether.
Added a test that would've caught the problem.
</content>
</entry>
<entry>
<title>Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident in</title>
<updated>2003-01-02T12:55:48Z</updated>
<author>
<name>Just van Rossum</name>
<email>just@letterror.com</email>
</author>
<published>2003-01-02T12:55:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d35c6db526a6ce1656de2c9998a866445fdf5fe4'/>
<id>urn:sha1:d35c6db526a6ce1656de2c9998a866445fdf5fe4</id>
<content type='text'>
the test set as it only tested with a zip archive in the current directory,
but it doesn't work at all for packages when the zip archive was specified
as an absolute path. It's a real embarrassing bug: a strchr call should
have been strrchr; fever apparently implies dyslexia.

Second stupid bug: the zipimport test failed with a name error
__importer__ (which I had renamed to __loader__ everywhere but here).
I would've sworn I ran the test after that change but that can't be true.
What I don't understand that noone reported a failing test_zipimport.py
before the release of 2.3a1.
</content>
</entry>
</feed>
