mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-46425: fix direct invocation of test_importlib (GH-30682)
This commit is contained in:
parent
55f4ec460e
commit
57316c52ba
39 changed files with 74 additions and 61 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import sys
|
||||
import unittest
|
||||
|
||||
from . import fixtures
|
||||
from test.test_importlib import fixtures
|
||||
from importlib.metadata import (
|
||||
PackageNotFoundError,
|
||||
distribution,
|
||||
|
|
@ -60,3 +60,6 @@ class TestEgg(TestZip):
|
|||
def test_normalized_name(self):
|
||||
dist = distribution('example')
|
||||
assert dist._normalized_name == 'example'
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue