- [_CONDS_TRIGGERS_PATH, 'run', str(descriptor.index)],
+ [_CONDS_TRIGGERS_PATH, "run", str(descriptor.index)],
# wait for program end and get standard error pipe's contents
_, stderr = proc.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
# wait for program end and get standard error pipe's contents
_, stderr = proc.communicate(timeout=timeout)
except subprocess.TimeoutExpired:
self.assertEqual(proc.returncode, -int(signal.SIGABRT))
# assert that the standard error text contains the condition ID
self.assertEqual(proc.returncode, -int(signal.SIGABRT))
# assert that the standard error text contains the condition ID
for index, json_descr in enumerate(json_descr_array):
# sanity check: check for duplicate
for index, json_descr in enumerate(json_descr_array):
# sanity check: check for duplicate
descriptors.append(cond_type(index, trigger_name, cond_id))
descriptor_names.add(trigger_name)
descriptors.append(cond_type(index, trigger_name, cond_id))
descriptor_names.add(trigger_name)
- test_meth_name = 'test_{}'.format(
- re.sub(r'[^a-zA-Z0-9_]', '_', descriptor.trigger_name)
+ test_meth_name = "test_{}".format(
+ re.sub(r"[^a-zA-Z0-9_]", "_", descriptor.trigger_name)