Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2022
1 parent 3db5d9a commit 3235fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/assertion/rewrite.py
Expand Up @@ -43,7 +43,7 @@

if TYPE_CHECKING:
from _pytest.assertion import AssertionState


assertstate_key = StashKey["AssertionState"]()

Expand Down Expand Up @@ -280,7 +280,7 @@ def get_resource_reader(self, name: str) -> importlib.abc.TraversableResources:
from importlib.readers import FileReader
else:
from importlib.resources.readers import FileReader

return FileReader(types.SimpleNamespace(path=self._rewritten_names[name]))


Expand Down

0 comments on commit 3235fdb

Please sign in to comment.