fairseq/data/encoders/__init__.py

Killed 9 out of 10 mutants

Survived

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

Mutant 3345

--- fairseq/data/encoders/__init__.py
+++ fairseq/data/encoders/__init__.py
@@ -24,7 +24,7 @@
 
 # automatically import any Python files in the encoders/ 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.data.encoders.' + module)