Skip to content

Commit 71fd1fa

Browse files
committed
Remove unnecessary --import-mode. Closes #345
1 parent 741f383 commit 71fd1fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mutmut/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,15 @@ def pytest_runtest_makereport(self, item, call):
395395
stats_collector = StatsCollector()
396396

397397
with change_cwd('mutants'):
398-
return int(self.execute_pytest(['-x', '-q', '--import-mode=append'] + list(tests), plugins=[stats_collector]))
398+
return int(self.execute_pytest(['-x', '-q'] + list(tests), plugins=[stats_collector]))
399399

400400
def run_tests(self, *, mutant_name, tests):
401401
with change_cwd('mutants'):
402-
return int(self.execute_pytest(['-x', '-q', '--import-mode=append'] + list(tests)))
402+
return int(self.execute_pytest(['-x', '-q'] + list(tests)))
403403

404404
def run_forced_fail(self):
405405
with change_cwd('mutants'):
406-
return int(self.execute_pytest(['-x', '-q', '--import-mode=append']))
406+
return int(self.execute_pytest(['-x', '-q']))
407407

408408
def list_all_tests(self):
409409
class TestsCollector:

0 commit comments

Comments
 (0)