44
55from pytest import fixture , mark , raises , warns
66from pytest_subprocess .fake_process import FakeProcess
7- from pyfakefs .fake_filesystem_unittest import Patcher
87
98from fab .artefacts import ArtefactSet , ArtefactStore
109from fab .build_config import BuildConfig , FlagsConfig
@@ -66,8 +65,8 @@ def test_compile_cc_wrong_compiler(stub_tool_box,
6665 with raises (RuntimeError ) as err :
6766 handle_compiler_args (config )
6867 assert str (err .value ) \
69- == "Unexpected tool 'some Fortran compiler' of category " \
70- + "'C_COMPILER' instead of FortranCompiler"
68+ == "Unexpected tool 'some Fortran compiler' of category " \
69+ + "'C_COMPILER' instead of FortranCompiler"
7170
7271
7372class TestCompilePass :
@@ -82,7 +81,7 @@ def test_vanilla(self, analysed_files, stub_tool_box: ToolBox,
8281 """
8382 a , b , c = analysed_files
8483
85- fake_process .register (['sfc' , '--version' ], stdout = '1.2.3' )
84+ fake_process .register (['sfc' , '--version' ], stdout = '1.2.3' )
8685 fake_process .register (['sfc' , fake_process .any ()])
8786
8887 uncompiled = {a , b }
@@ -91,13 +90,6 @@ def test_vanilla(self, analysed_files, stub_tool_box: ToolBox,
9190 tmp_path / 'proj/build_output/_prebuild/' / c .fpath .name )
9291 }
9392
94- run_mp_results = [
95- (
96- CompiledFile (tmp_path / 'proj/build_output/b.f90' ,
97- output_fpath = tmp_path / 'proj/build_output/_prebuild/b.123.o' )
98- )
99- ]
100-
10193 # this gets filled in
10294 mod_hashes : Dict [str , int ] = {}
10395
0 commit comments