Revision eb172e55 test/py/cmdlib/testsupport/cmdlib_testcase.py
b/test/py/cmdlib/testsupport/cmdlib_testcase.py | ||
---|---|---|
34 | 34 |
|
35 | 35 |
from ganeti import errors |
36 | 36 |
from ganeti import opcodes |
37 |
from ganeti import runtime |
|
37 | 38 |
|
38 | 39 |
import testutils |
39 | 40 |
|
... | ... | |
68 | 69 |
super(CmdlibTestCase, self).setUp() |
69 | 70 |
self._iallocator_patcher = None |
70 | 71 |
|
72 |
try: |
|
73 |
runtime.InitArchInfo() |
|
74 |
except errors.ProgrammerError: |
|
75 |
# during tests, the arch info can be initialized multiple times |
|
76 |
pass |
|
77 |
|
|
71 | 78 |
self.ResetMocks() |
72 | 79 |
|
73 | 80 |
def _StopPatchers(self): |
Also available in: Unified diff