mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #25805: Skip a test for test_pkgutil when __name__ == __main__.
Thanks to SilentGhost for the patch.
This commit is contained in:
parent
87fe473edc
commit
4a2360d3f7
2 changed files with 4 additions and 0 deletions
|
|
@ -413,6 +413,7 @@ class ImportlibMigrationTests(unittest.TestCase):
|
|||
self.assertIsNotNone(pkgutil.get_loader("test.support"))
|
||||
self.assertEqual(len(w.warnings), 0)
|
||||
|
||||
@unittest.skipIf(__name__ == '__main__', 'not compatible with __main__')
|
||||
def test_get_loader_handles_missing_loader_attribute(self):
|
||||
global __loader__
|
||||
this_loader = __loader__
|
||||
|
|
|
|||
|
|
@ -96,6 +96,9 @@ Library
|
|||
Tests
|
||||
-----
|
||||
|
||||
- Issue #25805: Skip a test in test_pkgutil as needed that doesn't work when
|
||||
``__name__ == __main__``. Patch by SilentGhost.
|
||||
|
||||
- Issue #27472: Add test.support.unix_shell as the path to the default shell.
|
||||
|
||||
- Issue #27369: In test_pyexpat, avoid testing an error message detail that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue