Skip to content

Commit

Permalink
docs: convert comment to docstring
Browse files Browse the repository at this point in the history
Will show when running `pytest --fixtures`

Signed-off-by: Mike Fiedler <[email protected]>
  • Loading branch information
miketheman committed Dec 12, 2021
1 parent f9014c9 commit 5c21b28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

@pytest.fixture(autouse=True)
def reenable_socket():
# The tests can leave the socket disabled in the global scope.
# Fix that by automatically re-enabling it after each test
"""
The tests can leave the socket disabled in the global scope.
Fix by automatically re-enabling it after each test.
"""
yield
enable_socket()

0 comments on commit 5c21b28

Please sign in to comment.