@@ -55,7 +55,7 @@ def test_unsupported_python_version(package_unsupported_python_version):
5555 sys .version_info < (3 , 8 ),
5656 reason = "unittest.mock doesn't support the required APIs for this test" ,
5757)
58- def test_user_args (package_user_args , mocker , tmp_dir_session ):
58+ def test_user_args (package_user_args , mocker , tmp_path_session ):
5959 mocker .patch ('mesonpy.Project._meson' )
6060
6161 def last_two_meson_args ():
@@ -64,7 +64,7 @@ def last_two_meson_args():
6464 ]
6565
6666 # create the build directory ourselves because Project._meson is mocked
67- builddir = str (tmp_dir_session / 'build' )
67+ builddir = str (tmp_path_session / 'build' )
6868 subprocess .run (['meson' , 'setup' , '.' , builddir ], check = True )
6969
7070 config_settings = {
@@ -76,9 +76,9 @@ def last_two_meson_args():
7676 }
7777
7878 with contextlib .suppress (Exception ):
79- mesonpy .build_sdist (tmp_dir_session / 'dist' , config_settings )
79+ mesonpy .build_sdist (tmp_path_session / 'dist' , config_settings )
8080 with contextlib .suppress (Exception ):
81- mesonpy .build_wheel (tmp_dir_session / 'dist' , config_settings )
81+ mesonpy .build_wheel (tmp_path_session / 'dist' , config_settings )
8282
8383 assert last_two_meson_args () == [
8484 # sdist
@@ -92,6 +92,6 @@ def last_two_meson_args():
9292
9393
9494@pytest .mark .parametrize ('package' , ('top-level' , 'meson-args' ))
95- def test_unknown_user_args (package , tmp_dir_session ):
95+ def test_unknown_user_args (package , tmp_path_session ):
9696 with pytest .raises (mesonpy .ConfigError ):
97- mesonpy .Project (package_dir / f'unknown-user-args-{ package } ' , tmp_dir_session )
97+ mesonpy .Project (package_dir / f'unknown-user-args-{ package } ' , tmp_path_session )
0 commit comments