imblearn/over_sampling/_random_over_sampler.py

Killed 0 out of 2 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 97

--- imblearn/over_sampling/_random_over_sampler.py
+++ imblearn/over_sampling/_random_over_sampler.py
@@ -69,7 +69,6 @@
     Resampled dataset shape Counter({{0: 900, 1: 900}})
     """
 
-    @_deprecate_positional_args
     def __init__(self, *, sampling_strategy="auto", random_state=None):
         super().__init__(sampling_strategy=sampling_strategy)
         self.random_state = random_state

Mutant 98

--- imblearn/over_sampling/_random_over_sampler.py
+++ imblearn/over_sampling/_random_over_sampler.py
@@ -70,7 +70,7 @@
     """
 
     @_deprecate_positional_args
-    def __init__(self, *, sampling_strategy="auto", random_state=None):
+    def __init__(self, *, sampling_strategy="XXautoXX", random_state=None):
         super().__init__(sampling_strategy=sampling_strategy)
         self.random_state = random_state