Move stdlib allowlists to stdlib/@tests (#11982)

Rename py3_common.txt to common.txt
This commit is contained in:
Sebastian Rittau
2024-05-20 13:23:02 +02:00
committed by GitHub
parent 3cb7451c99
commit e2e3750ee9
23 changed files with 6 additions and 6 deletions

View File

@@ -163,14 +163,14 @@ def get_all_testcase_directories() -> list[DistributionTests]:
def allowlists_path(distribution_name: str) -> Path:
if distribution_name == "stdlib":
return Path("tests", "stubtest_allowlists")
return tests_path("stdlib") / "stubtest_allowlists"
else:
return tests_path(distribution_name)
def common_allowlists(distribution_name: str) -> list[str]:
if distribution_name == "stdlib":
return ["py3_common.txt", f"{sys.platform}.txt"]
return ["common.txt", f"{sys.platform}.txt"]
else:
return ["stubtest_allowlist.txt", f"stubtest_allowlist_{sys.platform}.txt"]