mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1176642 - Defer import of glob; r=glandium
This was the only import of glob from all mach_commands.py files. Kill it. With this commit, there are no modules imported by a single mach_commands.py outside of testing/web-platform/mach_commands.py.
This commit is contained in:
parent
8c6af140a3
commit
f9d09584a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user