Skip to content

Commit

Permalink
Suppress pytest warnings due to test util classes (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong authored and asvetlov committed May 10, 2019
1 parent c8cbbcc commit e6cbce3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/3660.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Suppress pytest warnings due to test util classes
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Chris Moore
Christopher Schmitt
Claudiu Popa
Colin Dunklau
Cong Xu
Damien Nadé
Dan Xu
Daniel García
Expand Down
3 changes: 3 additions & 0 deletions aiohttp/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def unused_port() -> int:


class BaseTestServer(ABC):
__test__ = False

def __init__(self,
*,
scheme: Union[str, object]=sentinel,
Expand Down Expand Up @@ -230,6 +232,7 @@ class TestClient:
To write functional tests for aiohttp based servers.
"""
__test__ = False

def __init__(self, server: BaseTestServer, *,
cookie_jar: Optional[AbstractCookieJar]=None,
Expand Down

0 comments on commit e6cbce3

Please sign in to comment.