fairseq/optim/lr_scheduler/__init__.py

Killed 8 out of 10 mutants

Survived

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

Mutant 3357

--- fairseq/optim/lr_scheduler/__init__.py
+++ fairseq/optim/lr_scheduler/__init__.py
@@ -13,7 +13,7 @@
 build_lr_scheduler, register_lr_scheduler, LR_SCHEDULER_REGISTRY = registry.setup_registry(
     '--lr-scheduler',
     base_class=FairseqLRScheduler,
-    default='fixed',
+    default='XXfixedXX',
 )
 
 # automatically import any Python files in the optim/lr_scheduler/ directory

Mutant 3358

--- fairseq/optim/lr_scheduler/__init__.py
+++ fairseq/optim/lr_scheduler/__init__.py
@@ -18,7 +18,7 @@
 
 # automatically import any Python files in the optim/lr_scheduler/ directory
 for file in os.listdir(os.path.dirname(__file__)):
-    if file.endswith('.py') and not file.startswith('_'):
+    if file.endswith('XX.pyXX') and not file.startswith('_'):
         module = file[:file.find('.py')]
         importlib.import_module('fairseq.optim.lr_scheduler.' + module)