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:
parent
b1daa50293
commit
bdf5a49cec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user