Replace importlib_metadata with importlib.metadata on Python 3.8+ (#5539)

This commit is contained in:
Bruno Oliveira
2019-07-04 21:46:43 -03:00
committed by Ondřej Súkup
parent 1cc974c95d
commit b9a8465ce4
9 changed files with 16 additions and 7 deletions

View File

@@ -180,7 +180,8 @@ class TestImportHookInstallation(object):
return check
""",
"mainwrapper.py": """\
import pytest, importlib_metadata
import pytest
from _pytest.compat import importlib_metadata
class DummyEntryPoint(object):
name = 'spam'