diff --git a/python/mach_commands.py b/python/mach_commands.py index be22fd76acf..c4e8d86e4a8 100644 --- a/python/mach_commands.py +++ b/python/mach_commands.py @@ -5,7 +5,6 @@ from __future__ import absolute_import, print_function, unicode_literals import argparse -import glob import logging import mozpack.path as mozpath import os @@ -53,6 +52,7 @@ class MachCommands(MachCommandBase): help='Tests to run. Each test can be a single file or a directory.') def python_test(self, tests, verbose=False, stop=False): self._activate_virtualenv() + import glob # Python's unittest, and in particular discover, has problems with # clashing namespaces when importing multiple test modules. What follows