From eea0757659559941ceec02b0f41d739b3cc3926d Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Sat, 24 Oct 2020 18:35:34 -0700 Subject: [PATCH] stubtest unused: match stubtest version, add fix In #4696 I bumped stubtest to a commit that hasn't been released. We should have these stubtest versions match. In https://github.com/python/mypy/pull/9426 I changed the output of stubtest here; it's good to get this change in before I forget and this action silently stops working. --- .github/workflows/stubtest-unused-whitelist.yml | 2 +- tests/stubtest_unused.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stubtest-unused-whitelist.yml b/.github/workflows/stubtest-unused-whitelist.yml index 26bc6f383e27..f2ca2473d624 100644 --- a/.github/workflows/stubtest-unused-whitelist.yml +++ b/.github/workflows/stubtest-unused-whitelist.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - pip install -U mypy==0.790 + pip install -U git+git://github.com/python/mypy@af3c8be98f - name: Run stubtest shell: bash run: ./tests/stubtest_unused.py | tee stubtest-output-${{ matrix.os }}-${{ matrix.python-version }} || true diff --git a/tests/stubtest_unused.py b/tests/stubtest_unused.py index f960a9d45d7e..a66f9d77930b 100755 --- a/tests/stubtest_unused.py +++ b/tests/stubtest_unused.py @@ -7,7 +7,7 @@ import subprocess import sys -_UNUSED_NOTE = "note: unused whitelist entry " +_UNUSED_NOTE = "note: unused allowlist entry " _WHITELIST_PATH = os.path.join("tests", "stubtest_whitelists")