Skip to content

Commit

Permalink
#3 Removed unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Apr 17, 2024
1 parent 5ab1d75 commit 622b748
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/unit_tests/tools/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def test_command_failure(self):
'''If the command fails, we must return an empty string, not None,
so it can still be hashed.'''
c = Compiler("gfortran", "gfortran", Categories.FORTRAN_COMPILER)
c.run = mock.Mock()
with mock.patch.object(c, 'run', side_effect=RuntimeError()):
assert c.get_version() == '', 'expected empty string'
with mock.patch.object(c, 'run', side_effect=FileNotFoundError()):
Expand Down

0 comments on commit 622b748

Please sign in to comment.