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

subunitrun: Extend hack to cope with older system subunit run installs.

This commit is contained in:
Jelmer Vernooij 2010-12-09 23:28:25 +01:00
parent b1daa50293
commit bdf5a49cec

View File

@ -30,6 +30,8 @@ try:
from subunit.run import SubunitTestRunner, TestProgram
except ImportError:
del sys.modules["subunit"]
if "subunit.run" in sys.modules:
del sys.modules["subunit.run"]
samba.import_bundled_package("subunit", "subunit/python")
from subunit.run import SubunitTestRunner, TestProgram
import samba.getopt as options