File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,11 +93,13 @@ def check_distutils() -> None:
9393 def all_relative_paths_in_directory (path : Path ) -> set [Path ]:
9494 return {pyi .relative_to (path ) for pyi in path .rglob ("*.pyi" )}
9595
96- all_setuptools_files = all_relative_paths_in_directory (STUBS_PATH / "setuptools" / "setuptools" / "_distutils" )
97- all_distutils_files = all_relative_paths_in_directory (STUBS_PATH / "setuptools" / "distutils" )
96+ setuptools_path = STUBS_PATH / "setuptools" / "setuptools" / "_distutils"
97+ distutils_path = STUBS_PATH / "setuptools" / "distutils"
98+ all_setuptools_files = all_relative_paths_in_directory (setuptools_path )
99+ all_distutils_files = all_relative_paths_in_directory (distutils_path )
98100 assert all_setuptools_files and all_distutils_files , "Looks like this test might be out of date!"
99101 extra_files = all_setuptools_files - all_distutils_files
100- joined = "\n " .join (f" * { f } " for f in extra_files )
102+ joined = "\n " .join (f" * { distutils_path / f } " for f in extra_files )
101103 assert not extra_files , f"Files missing from distutils:\n { joined } "
102104
103105
You can’t perform that action at this time.
0 commit comments