diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3a66ffc..29e9115 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,10 +24,10 @@ jobs: - package - docs steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: - python-version: '3.12' + python-version: '3.13' - name: Install prerequisites run: python -m pip install tox - name: Run ${{ matrix.env }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fda700a..d8a3a9b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,10 +13,10 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: - python-version: '3.12' + python-version: '3.13' - name: Install prerequisites run: python -m pip install build twine wheel - name: Build package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 200ab45..cb7cc36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,8 @@ jobs: - pypy-3.9 - pypy-3.10 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install prerequisites diff --git a/tests/test_decorators.py b/tests/test_decorators.py index 85f8eb4..d904e8b 100644 --- a/tests/test_decorators.py +++ b/tests/test_decorators.py @@ -16,9 +16,9 @@ def test_argv_context(): assert sys.argv == old with ArgvContext(*new): - assert ( - sys.argv == new - ), "sys.argv wasn't correctly changed by the contextmanager" + assert sys.argv == new, ( + "sys.argv wasn't correctly changed by the contextmanager" + ) assert sys.argv == old, "sys.argv wasn't correctly reset" @@ -35,12 +35,12 @@ def test_environ_context(): assert os.getenv("FOO") is None, "Invalid test setup" with EnvironContext(PATH=None, FOO="my foo value"): - assert ( - os.getenv("PATH") is None - ), "os.environ[PATH] wasn't removed by the contextmanager" - assert ( - os.getenv("FOO") == "my foo value" - ), "os.environ[FOO] wasn't set by the contextmanager" + assert os.getenv("PATH") is None, ( + "os.environ[PATH] wasn't removed by the contextmanager" + ) + assert os.getenv("FOO") == "my foo value", ( + "os.environ[FOO] wasn't set by the contextmanager" + ) assert os.environ == old_environ, "object os.environ was not restored" assert os.getenv("PATH") == old_path, "env var PATH was not restored"