Skip to content

Commit f9db177

Browse files
committed
drop '(get_cuda_cc_template_value)' from error message
1 parent 204bcf1 commit f9db177

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/framework/easyconfig/easyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1814,7 +1814,7 @@ def get_cuda_cc_template_value(self, key):
18141814
try:
18151815
return self.template_values[key]
18161816
except KeyError:
1817-
error_msg = "(get_cuda_cc_template_value) Template value '%s' is not defined!\n"
1817+
error_msg = "Template value '%s' is not defined!\n"
18181818
error_msg += "Make sure that either the --cuda-compute-capabilities EasyBuild configuration "
18191819
error_msg += "option is set, or that the cuda_compute_capabilities easyconfig parameter is defined."
18201820
raise EasyBuildError(error_msg, key)

test/framework/easyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,7 @@ def test_get_cuda_cc_template_value(self):
45014501
error_pattern = "foobar is not a template value based on --cuda-compute-capabilities/cuda_compute_capabilities"
45024502
self.assertErrorRegex(EasyBuildError, error_pattern, ec.get_cuda_cc_template_value, 'foobar')
45034503

4504-
error_pattern = r"\(get_cuda_cc_template_value\) Template value '%s' is not defined!\n"
4504+
error_pattern = r"Template value '%s' is not defined!\n"
45054505
error_pattern += r"Make sure that either the --cuda-compute-capabilities EasyBuild configuration "
45064506
error_pattern += "option is set, or that the cuda_compute_capabilities easyconfig parameter is defined."
45074507
cuda_template_values = {

0 commit comments

Comments
 (0)