We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73f2d3f commit 21ae4f8Copy full SHA for 21ae4f8
1 file changed
tests/conftest.py
@@ -33,12 +33,15 @@
33
34
35
def pytest_collection_modifyitems(config, items):
36
- # Handle tests marked with tensorrtllm
+ """
37
+ This function is called to modify the list of tests to run.
38
+ It is used to skip tests that are not supported on all environments.
39
40
+
41
+ # Tests marked with tensorrtllm requires specific environment with tensorrtllm
42
+ # installed. Hence, we skip them if the user did not explicitly ask for them.
43
if config.getoption("-m") and "tensorrtllm" in config.getoption("-m"):
- # User explicitly asked for tensorrtllm tests, do nothing
44
return
-
- # Otherwise, skip all tests marked with tensorrtllm
45
skip_tensorrtllm = pytest.mark.skip(reason="need -m tensorrtllm to run")
46
for item in items:
47
if "tensorrtllm" in item.keywords:
0 commit comments