1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

subunitrun: Remove global subunit module when reimporting from a

different location.
This commit is contained in:
Jelmer Vernooij 2010-12-09 22:48:16 +01:00
parent 8f4c064b49
commit b1daa50293

View File

@ -26,7 +26,12 @@ import optparse
import samba
samba.ensure_external_module("testtools", "testtools")
samba.ensure_external_module("subunit", "subunit/python")
from subunit.run import SubunitTestRunner, TestProgram
try:
from subunit.run import SubunitTestRunner, TestProgram
except ImportError:
del sys.modules["subunit"]
samba.import_bundled_package("subunit", "subunit/python")
from subunit.run import SubunitTestRunner, TestProgram
import samba.getopt as options
import samba.tests