Skip to content

Commit b3319a6

Browse files
authored
Merge pull request #4944 from henrykironde/k-EXPRESSION
Add example for k flag
2 parents c9628c5 + 1e3d5a0 commit b3319a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/mark/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def pytest_addoption(parser):
5252
"other' matches all test functions and classes whose name "
5353
"contains 'test_method' or 'test_other', while -k 'not test_method' "
5454
"matches those that don't contain 'test_method' in their names. "
55+
"-k 'not test_method and not test_other' will eliminate the matches. "
5556
"Additionally keywords are matched to classes and functions "
5657
"containing extra names in their 'extra_keyword_matches' set, "
5758
"as well as functions which have names assigned directly to them.",

0 commit comments

Comments
 (0)