From 3b04ab8b2eda6cc4317c47cf6f75618220213780 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Sun, 19 Jan 2025 23:17:17 +0100 Subject: [PATCH] Move make_test_list.py to tools directory (#5353) --- docs/development/maintainers.md | 4 ++-- src/tests/python_tests.yaml | 2 +- {src/tests => tools}/make_test_list.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename {src/tests => tools}/make_test_list.py (95%) diff --git a/docs/development/maintainers.md b/docs/development/maintainers.md index 0d0e2033d27..d7ae5c174cc 100644 --- a/docs/development/maintainers.md +++ b/docs/development/maintainers.md @@ -294,10 +294,10 @@ If doing a major version update, save time by {ref}`updating-packages` first. figure out how to fix it: https://github.com/python-greenlet/greenlet/blob/master/src/greenlet/TPythonState.cpp -8. In the virtual environment with the new Python version, run +8. Run ```sh - python src/tests/make_test_list.py + python tools/make_test_list.py ``` Then run the core tests `pytest src/tests/test_core_python.py` and either fix diff --git a/src/tests/python_tests.yaml b/src/tests/python_tests.yaml index cae8d325b81..02a954fe9f4 100644 --- a/src/tests/python_tests.yaml +++ b/src/tests/python_tests.yaml @@ -1,4 +1,4 @@ -# This list is updated with test/make_test_list.py script, which needs +# This list is updated with tools/make_test_list.py script, which needs # to be re-run after each CPython update. # Test modules can have: diff --git a/src/tests/make_test_list.py b/tools/make_test_list.py similarity index 95% rename from src/tests/make_test_list.py rename to tools/make_test_list.py index 9b6bbab2b4f..89e3f7c65b3 100644 --- a/src/tests/make_test_list.py +++ b/tools/make_test_list.py @@ -11,8 +11,8 @@ import ruamel.yaml yaml = ruamel.yaml.YAML() -PYODIDE_ROOT = Path(__file__).parents[2] -PYTHON_TESTS_YAML = Path(__file__).parent / "python_tests.yaml" +PYODIDE_ROOT = Path(__file__).parents[1] +PYTHON_TESTS_YAML = PYODIDE_ROOT / "src/tests/python_tests.yaml" def get_makefile_envs():