test: target build_module in remap construction fault injection
This commit is contained in:
1 parent
2b3c2a7529
commit
21fe71d332
1 file changed
+1
-1
@@ -86,7 +86,7 @@ class RuntimeChildRemap(unittest.TestCase):
|
|||||||
before = run.download()
|
before = run.download()
|
||||||
old_allocations = list(allocations)
|
old_allocations = list(allocations)
|
||||||
if failure == 'construction':
|
if failure == 'construction':
|
||||||
operation = patch.object(module.compiler, 'compile_kernel', side_effect=RuntimeError('candidate compile'))
|
operation = patch.object(module.compiler, 'build_module', side_effect=RuntimeError('candidate compile'))
|
||||||
else:
|
else:
|
||||||
initialize = type(run).initialize
|
initialize = type(run).initialize
|
||||||
def fail(candidate, *arrays):
|
def fail(candidate, *arrays):
|
||||||
|
|||||||
Reference in new issue
Block a user