Merge pull request #6844 from bluetech/asserthook-abc-loader

Mark AssertionRewritingHook as implementing importlib.abc.Loader
This commit is contained in:
Ran Benita 2020-02-29 23:21:11 +02:00 committed by GitHub
commit 5fc80d8bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ PYC_EXT = ".py" + (__debug__ and "c" or "o")
PYC_TAIL = "." + PYTEST_TAG + PYC_EXT
class AssertionRewritingHook(importlib.abc.MetaPathFinder):
class AssertionRewritingHook(importlib.abc.MetaPathFinder, importlib.abc.Loader):
"""PEP302/PEP451 import hook which rewrites asserts."""
def __init__(self, config):