Skip to content

Commit 8aa1ce9

Browse files
committed
reduce dependencies lower bounds
It looks like pytest only supports '-p=no:randomly' since v8.0.0. For backwards compatibility, we now use '-p', 'no:randomly'
1 parent 1d093c9 commit 8aa1ce9

File tree

4 files changed

+105
-307
lines changed

4 files changed

+105
-307
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ You can add and override pytest arguments:
206206
.. code-block:: python
207207
208208
# for CLI args that select or deselect tests, use `pytest_add_cli_args_test_selection`
209-
pytest_add_cli_args_test_selection = ["-m", "not fail", "-k=test_include"]
209+
pytest_add_cli_args_test_selection = ["-m", "not fail", "-k", "test_include"]
210210
211211
# for other CLI args, use `pytest_add_cli_args`
212212
pytest_add_cli_args = ["-p", "no:some_plugin"] # disable a plugin

pyproject.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ classifiers = [
2424
]
2525

2626
dependencies = [
27-
"click>=8.3.0",
28-
"coverage>=7.11.0",
29-
"libcst>=1.8.5",
30-
"pytest>=8.4.2",
31-
"setproctitle>=1.3.7",
32-
"textual>=6.4.0",
27+
"click>=8.0.0",
28+
"coverage>=7.3.0",
29+
"libcst>=1.0.0",
30+
"pytest>=6.2.5",
31+
"setproctitle>=1.1.0",
32+
"textual>=1.0.0",
3333
"toml>=0.10.2 ; python_full_version < '3.11'",
3434
]
3535

@@ -53,9 +53,7 @@ source-include = ["HISTORY.rst"]
5353

5454
[dependency-groups]
5555
dev = [
56-
"coverage>=7.11.0",
57-
"pytest>=8.4.2",
58-
"pytest-asyncio>=1.2.0",
56+
"pytest-asyncio>=1.0.0",
5957
]
6058

6159
[tool.pytest.ini_options]

src/mutmut/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def pytest_runtest_makereport(self, item, call):
471471
return int(self.execute_pytest(pytest_args, plugins=[stats_collector]))
472472

473473
def run_tests(self, *, mutant_name, tests):
474-
pytest_args = ['-x', '-q', '-p no:randomly', '-p no:random-order']
474+
pytest_args = ['-x', '-q', '-p', 'no:randomly', '-p', 'no:random-order']
475475
if tests:
476476
pytest_args += list(tests)
477477
else:

0 commit comments

Comments
 (0)