From 9cd91f0ff5fd9321545c987484985d93ea08bfba Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Wed, 6 Mar 2024 16:00:00 -0500 Subject: [PATCH] Check for EasyBuildError for strtobool replacement --- test/framework/type_checking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/framework/type_checking.py b/test/framework/type_checking.py index 1eb2f19fd3..e52c3da603 100644 --- a/test/framework/type_checking.py +++ b/test/framework/type_checking.py @@ -317,9 +317,9 @@ def test_to_toolchain_dict(self): self.assertErrorRegex(EasyBuildError, errstr, to_toolchain_dict, ['gcc', '4', 'False', '7']) # invalid truth value - errstr = "invalid truth value .*" - self.assertErrorRegex(ValueError, errstr, to_toolchain_dict, "intel, 2015, foo") - self.assertErrorRegex(ValueError, errstr, to_toolchain_dict, ['gcc', '4', '7']) + errstr = "Invalid truth value .*" + self.assertErrorRegex(EasyBuildError, errstr, to_toolchain_dict, "intel, 2015, foo") + self.assertErrorRegex(EasyBuildError, errstr, to_toolchain_dict, ['gcc', '4', '7']) # missing keys self.assertErrorRegex(EasyBuildError, "Incorrect set of keys", to_toolchain_dict, {'name': 'intel'})