From 69ce61bb11040cf83b4442fd74a5f38725330ff2 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 1 Sep 2023 08:01:51 +0200 Subject: [PATCH] 5.x: Fix GHA. (#260) --- .github/workflows/tests.yml | 2 +- tests/test_Guards.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25ab83c..e1071f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,7 +42,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v4 + uses: MatteoH2O1999/setup-python@v1 with: python-version: ${{ matrix.config[0] }} - name: Pip cache diff --git a/tests/test_Guards.py b/tests/test_Guards.py index e80105d..631f200 100644 --- a/tests/test_Guards.py +++ b/tests/test_Guards.py @@ -243,7 +243,7 @@ def test_Guards__safer_getattr__1d(): @pytest.mark.skipif(IS_PY3, reason="Python 3 lacks unicode") -def test_Guards__safer_getattr__2a(): +def test_Guards__safer_getattr__2a(): # pragma: PY2 """It prevents using the format method of a unicode. format() is considered harmful: @@ -265,7 +265,7 @@ def test_Guards__safer_getattr__2a(): @pytest.mark.skipif(IS_PY3, reason="Python 3 lacks unicode") -def test_Guards__safer_getattr__2b(): +def test_Guards__safer_getattr__2b(): # pragma: PY2 """It prevents using the format method of a unicode. format() is considered harmful: @@ -286,7 +286,7 @@ def test_Guards__safer_getattr__2b(): @pytest.mark.skipif(IS_PY3, reason="Python 3 lacks unicode") -def test_Guards__safer_getattr__2c(): +def test_Guards__safer_getattr__2c(): # pragma: PY2 """It prevents using the format method of a unicode. format() is considered harmful: @@ -306,7 +306,7 @@ def test_Guards__safer_getattr__2c(): @pytest.mark.skipif(IS_PY3, reason="Python 3 lacks unicode") -def test_Guards__safer_getattr__2d(): +def test_Guards__safer_getattr__2d(): # pragma: PY2 """It prevents using the format method of a unicode. format() is considered harmful: