diff --git a/tests/test_init.py b/tests/test_init.py index ae7b11c83de..216fd763965 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -9,13 +9,16 @@ class TestInit(unittest.TestCase): - """Make sure the package is alive.""" + """Make sure all python packages have init files.""" def test_init_everywhere(self): from parlai.core.params import ParlaiParser opt = ParlaiParser().parse_args() for root, subfolder, files in os.walk(os.path.join(opt['parlai_home'], 'parlai')): if not root.endswith('__pycache__'): + if os.path.basename(root) == 'html': + # skip mturk core's html folder--not a python module + continue assert '__init__.py' in files, 'Dir {} is missing __init__.py'.format(root)