66
77
88@pytest .fixture (scope = "session" )
9- def example_netstandard (tmpdir_factory ) :
10- return build_example (tmpdir_factory , "netstandard20 " )
9+ def example_netstandard (tmp_path_factory : pytest . TempPathFactory ) -> Path :
10+ return build_example (tmp_path_factory , "netstandard2.0 " )
1111
1212
1313@pytest .fixture (scope = "session" )
14- def example_netcore (tmpdir_factory ) :
15- return build_example (tmpdir_factory , "net60 " )
14+ def example_netcore (tmp_path_factory : pytest . TempPathFactory ) -> Path :
15+ return build_example (tmp_path_factory , "net8.0 " )
1616
1717
18- def build_example (tmpdir_factory , framework ) :
19- out = Path ( tmpdir_factory .mktemp (f"example-{ framework } " ) )
18+ def build_example (tmp_path_factory : pytest . TempPathFactory , framework : str ) -> Path :
19+ out = tmp_path_factory .mktemp (f"example-{ framework } " )
2020 proj_path = Path (__file__ ).parent .parent / "example" / "example.csproj"
2121
2222 check_call (["dotnet" , "build" , str (proj_path ), "-o" , str (out ), "-f" , framework ])
@@ -96,7 +96,7 @@ def test_coreclr_command_line(example_netcore: Path):
9696 run_in_subprocess (_do_test_coreclr_command_line , example_netcore )
9797
9898
99- def _do_test_coreclr_command_line (example_netcore ):
99+ def _do_test_coreclr_command_line (example_netcore : Path ):
100100 from clr_loader import get_coreclr_command_line
101101
102102 coreclr = get_coreclr_command_line (entry_dll = example_netcore / "example.dll" )
@@ -118,7 +118,7 @@ def test_coreclr_autogenerated_runtimeconfig(example_netstandard: Path):
118118
119119
120120def _do_test_coreclr_autogenerated_runtimeconfig (
121- example_netstandard : Path , ** properties
121+ example_netstandard : Path , ** properties : str
122122):
123123 from clr_loader import get_coreclr
124124
0 commit comments