Skip to content

Commit

Permalink
Merge pull request pytest-dev#6844 from bluetech/asserthook-abc-loader
Browse files Browse the repository at this point in the history
Mark AssertionRewritingHook as implementing importlib.abc.Loader
  • Loading branch information
bluetech authored Feb 29, 2020
2 parents f10ab02 + 2f60548 commit 5fc80d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/assertion/rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
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):
Expand Down

0 comments on commit 5fc80d8

Please sign in to comment.