<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_zipimport.py, branch main</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>gh-98040: Remove find_loader, find_module and other deprecated APIs (#98059)</title>
<updated>2023-05-03T11:55:22+00:00</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2023-05-03T11:55:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=326997829d02458246dfd5b6d03297e2418bde52'/>
<id>326997829d02458246dfd5b6d03297e2418bde52</id>
<content type='text'>
* Remove deprecated classes from pkgutil
* Remove some other PEP 302 obsolescence
* Use find_spec instead of load_module
* Remove more tests of PEP 302 obsolete APIs
* Remove another bunch of tests using obsolete load_modules()
* Remove deleted names from __all__
* Remove obsolete footnote
* imp is removed
* Remove `imp` from generated stdlib names
* What's new and blurb
* Update zipimport documentation for the removed methods
* Fix some Windows tests
* Remove any test (or part of a test) that references `find_module()`.
* Use assertIsNone() / assertIsNotNone() consistently.
* Update Doc/reference/import.rst
* We don't need pkgutil._get_spec() any more either
*  test.test_importlib.fixtures.NullFinder
* ...BadLoaderFinder.find_module
* ...test_api.InvalidatingNullFinder.find_module
* ...test.test_zipimport test of z.find_module
* Suppress cross-references to find_loader and find_module
* Suppress cross-references to Finder
* Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader

---------

Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;
Co-authored-by: Adam Turner &lt;9087854+aa-turner@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove deprecated classes from pkgutil
* Remove some other PEP 302 obsolescence
* Use find_spec instead of load_module
* Remove more tests of PEP 302 obsolete APIs
* Remove another bunch of tests using obsolete load_modules()
* Remove deleted names from __all__
* Remove obsolete footnote
* imp is removed
* Remove `imp` from generated stdlib names
* What's new and blurb
* Update zipimport documentation for the removed methods
* Fix some Windows tests
* Remove any test (or part of a test) that references `find_module()`.
* Use assertIsNone() / assertIsNotNone() consistently.
* Update Doc/reference/import.rst
* We don't need pkgutil._get_spec() any more either
*  test.test_importlib.fixtures.NullFinder
* ...BadLoaderFinder.find_module
* ...test_api.InvalidatingNullFinder.find_module
* ...test.test_zipimport test of z.find_module
* Suppress cross-references to find_loader and find_module
* Suppress cross-references to Finder
* Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader

---------

Co-authored-by: Oleg Iarygin &lt;oleg@arhadthedev.net&gt;
Co-authored-by: Adam Turner &lt;9087854+aa-turner@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-91181: drop support for bytes on sys.path (GH-31934)</title>
<updated>2022-07-17T01:07:53+00:00</updated>
<author>
<name>Thomas Grainger</name>
<email>tagrain@gmail.com</email>
</author>
<published>2022-07-17T01:07:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6da988a46c8955755624ad9878288d5214fceb4e'/>
<id>6da988a46c8955755624ad9878288d5214fceb4e</id>
<content type='text'>
Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.

Co-authored-by: Eryk Sun &lt;eryksun@gmail.com&gt;
Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support for bytes broke sometime between Python 3.2 and 3.6 and has been broken ever since. Trying to bring back supports is surprisingly difficult in the face of -b and checking for keys in sys.path_importer_cache. Since the support was broken for so long, trying to overcome the difficulty of bringing back the support has been deemed not worth it.

Co-authored-by: Eryk Sun &lt;eryksun@gmail.com&gt;
Co-authored-by: Brett Cannon &lt;brett@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-94379: Remove zipimport find_loader() and find_module() methods (#94380)</title>
<updated>2022-07-05T10:11:42+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-07-05T10:11:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=92bcb26d000c5890127a87ade2bd813cf1218704'/>
<id>92bcb26d000c5890127a87ade2bd813cf1218704</id>
<content type='text'>
zipimport: Remove find_loader() and find_module() methods, deprecated
in Python 3.10: use the find_spec() method instead. See PEP 451 for
the rationale.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
zipimport: Remove find_loader() and find_module() methods, deprecated
in Python 3.10: use the find_spec() method instead. See PEP 451 for
the rationale.</pre>
</div>
</content>
</entry>
<entry>
<title>gh-92886: Fix tests that fail when running with optimizations (`-O`) in `test_zipimport.py` (GH-93236)</title>
<updated>2022-06-10T22:57:04+00:00</updated>
<author>
<name>jackh-ncl</name>
<email>1750152+jackh-ncl@users.noreply.github.com</email>
</author>
<published>2022-06-10T22:57:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=484a2357c8385694a077cf2ce0517f327fb0b172'/>
<id>484a2357c8385694a077cf2ce0517f327fb0b172</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)</title>
<updated>2022-05-19T10:43:16+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2022-05-19T10:43:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=137fd3d88aa46669f5717734e823f4c594ab2843'/>
<id>137fd3d88aa46669f5717734e823f4c594ab2843</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-46411: Remove unnecessary calls to sys.exc_info() in tests (GH-30638)</title>
<updated>2022-01-18T07:05:16+00:00</updated>
<author>
<name>Irit Katriel</name>
<email>1055913+iritkatriel@users.noreply.github.com</email>
</author>
<published>2022-01-18T07:05:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a287b31bcb065e4122400cb59167340d25480e6d'/>
<id>a287b31bcb065e4122400cb59167340d25480e6d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-45229: Remove test_main in many tests (GH-28405)</title>
<updated>2021-09-19T12:27:33+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-09-19T12:27:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=40348acc180580371d25f75f46b27048e35f2435'/>
<id>40348acc180580371d25f75f46b27048e35f2435</id>
<content type='text'>
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.

load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.

load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435)</title>
<updated>2021-09-17T23:48:17+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2021-09-17T23:48:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=209b7035f714dcc41df054b0b023e0b955d7e1a2'/>
<id>209b7035f714dcc41df054b0b023e0b955d7e1a2</id>
<content type='text'>
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-5846: Do not use obsolete unittest functions. (GH-28303)</title>
<updated>2021-09-13T07:49:53+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2021-09-13T07:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=851811f5772c43f72f445e2ce1ac3ea9da951ae3'/>
<id>851811f5772c43f72f445e2ce1ac3ea9da951ae3</id>
<content type='text'>
Get rid of use of makeSuite() and findTestCases().
Also make test_math and test_threading_local discoverable.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Get rid of use of makeSuite() and findTestCases().
Also make test_math and test_threading_local discoverable.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708)</title>
<updated>2021-08-24T09:13:32+00:00</updated>
<author>
<name>Ammar Askar</name>
<email>ammar@ammaraskar.com</email>
</author>
<published>2021-08-24T09:13:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bb21e28fd08f894ceff2405544a2f257d42b1354'/>
<id>bb21e28fd08f894ceff2405544a2f257d42b1354</id>
<content type='text'>
Co-authored-by: Stéphane Wirtel &lt;stephane@wirtel.be&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Stéphane Wirtel &lt;stephane@wirtel.be&gt;
</pre>
</div>
</content>
</entry>
</feed>
