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 Oct 24, 2024
1 parent 519120f commit 4b5654d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def name(self) -> str:
def mode(self) -> str:
# TextIOWrapper doesn't expose a mode, but at least some of our
# tests check it.
assert hasattr(self.buffer, 'mode')
assert hasattr(self.buffer, "mode")
return cast(str, self.buffer.mode.replace("b", ""))

Check warning on line 181 in src/_pytest/capture.py

View check run for this annotation

Codecov / codecov/patch

src/_pytest/capture.py#L180-L181

Added lines #L180 - L181 were not covered by tests


Expand Down

0 comments on commit 4b5654d

Please sign in to comment.