Skip to content

Commit

Permalink
Merge pull request #2318 from Yourun-proger/fix_collect
Browse files Browse the repository at this point in the history
Remove `TestResponse` class from pytest collecting
  • Loading branch information
davidism authored Jan 26, 2022
2 parents 8058303 + 087372e commit 6093ea9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/werkzeug/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,9 @@ class TestResponse(Response):
is made with ``follow_redirects`` enabled.
"""

# Tell Pytest to ignore this, it's not a test class.
__test__ = False

def __init__(
self,
response: t.Iterable[bytes],
Expand Down

0 comments on commit 6093ea9

Please sign in to comment.