Skip to content

Commit

Permalink
Fixed typos and coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Nov 21, 2024
1 parent 6c3f1c2 commit ae61d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/tools/test_tool_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_tool_repository_default_compiler_suite():
is_available.return_value = True
for cat in [Category.C_COMPILER, Category.FORTRAN_COMPILER,
Category.LINKER]:
def_tool = tr.get_default(cat, mpi=False, openmmp=False)
def_tool = tr.get_default(cat, mpi=False, openmp=False)
assert def_tool.suite == "gnu"

tr.set_default_compiler_suite("intel-classic")
Expand All @@ -181,6 +181,6 @@ def test_tool_repository_no_tool_available():
new_callable=mock.PropertyMock) as is_available:
is_available.return_value = False
with pytest.raises(RuntimeError) as err:
def_tool = tr.get_default(Category.SHELL)
tr.get_default(Category.SHELL)
assert ("Can't find available 'SHELL' tool. Tools are 'bash,sh,ksh,"
"dash'" in str(err.value))

0 comments on commit ae61d4a

Please sign in to comment.