Skip to content

Commit

Permalink
Check for EasyBuildError for strtobool replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Mar 6, 2024
1 parent 5c6b7f7 commit 9cd91f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/framework/type_checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down

0 comments on commit 9cd91f0

Please sign in to comment.