From 50efcbec3716710ff7afec3a30cceab2d3849182 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 21 May 2024 13:31:01 -0400 Subject: [PATCH 1/2] Fix CI --- src/typeshed_stats/gather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeshed_stats/gather.py b/src/typeshed_stats/gather.py index f421eed3..2ffd0760 100644 --- a/src/typeshed_stats/gather.py +++ b/src/typeshed_stats/gather.py @@ -544,7 +544,7 @@ def get_stubtest_allowlist_length( True """ if package_name == "stdlib": - allowlist_dir = Path(typeshed_dir, "tests", "stubtest_allowlists") + allowlist_dir = Path(typeshed_dir, "stdlib", "@tests", "stubtest_allowlists") combined_allowlist = chain.from_iterable( _allowlist_entries_in_file(file) for file in allowlist_dir.glob("*.txt") ) From 461ca4ef6f166489d120eca654519d9d84429868 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 21 May 2024 13:39:28 -0400 Subject: [PATCH 2/2] . --- tests/test_gather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gather.py b/tests/test_gather.py index 5118131b..3bae4dd0 100644 --- a/tests/test_gather.py +++ b/tests/test_gather.py @@ -346,7 +346,7 @@ def test_get_stubtest_platform_non_stdlib( def test_get_stubtest_allowlist_length_stdlib( typeshed: Path, maybe_stringize_path: Callable[[Path], Path | str] ) -> None: - tests_dir = typeshed / "tests" + tests_dir = typeshed / "stdlib" / "@tests" tests_dir.mkdir() allowlist_dir = tests_dir / "stubtest_allowlists" allowlist_dir.mkdir()