We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c46675 commit 501aefbCopy full SHA for 501aefb
python/pyproject.toml
@@ -51,6 +51,7 @@ testpaths = [
51
"tests",
52
"hdfs_native",
53
]
54
+addopts = "-m 'not benchmark'"
55
56
[tool.ruff.lint]
57
extend-select = ["I"]
python/tests/test_benchmark.py
@@ -1,5 +1,6 @@
1
from concurrent.futures import ThreadPoolExecutor
2
3
+import pytest
4
from pytest_benchmark.fixture import BenchmarkFixture
5
6
from hdfs_native import Client
@@ -14,6 +15,7 @@ def delete(path: str):
14
15
executor.submit(delete, f"/bench{i}")
16
17
18
+@pytest.mark.benchmark
19
def test_threading(client: Client, benchmark: BenchmarkFixture):
20
for i in range(100):
21
client.create(f"/bench{i}").close()
0 commit comments