fairseq/optim/lr_scheduler/__init__.py
Killed 8 out of 10 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 2956
--- 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 2957
--- 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)