Skip to content

Commit

Permalink
comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed Feb 25, 2023
1 parent 8382318 commit 8b07ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def pytest_runtest_setup():
```

If you exceptionally want to enable socket for one particular execution
pass `--force-enable-socket`. It takes precedence over `--disable-socket`.
pass `--force-enable-socket`. It takes precedence over `--disable-socket`.

To enable Unix sockets during the test run (e.g. for async), add this option:

Expand Down
4 changes: 2 additions & 2 deletions pytest_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def pytest_runtest_setup(item) -> None:
if not hasattr(item, "fixturenames"):
return

# If test has the `enable_socket` marker, fixture or cli,
# we accept this as most explicit.
# If test has the `enable_socket` marker, fixture or
# it's forced from the CLI, we accept this as most explicit.
if (
"socket_enabled" in item.fixturenames
or item.get_closest_marker("enable_socket")
Expand Down

0 comments on commit 8b07ef4

Please sign in to comment.