Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 24, 2024
1 parent 84788d3 commit da16b78
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions unit_test/get_platform_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import contextlib
import sys
from pathlib import Path
from typing import Dict

import pytest
import setuptools._distutils.util
Expand All @@ -16,7 +15,7 @@


@contextlib.contextmanager
def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: Dict[str, str]):
def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: dict[str, str]):
with monkeypatch.context() as mp:
for envvar, val in environment.items():
mp.setenv(name=envvar, value=val)
Expand All @@ -25,7 +24,7 @@ def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: Dict[str,

def test_x86(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
arch = "32"
environment: Dict[str, str] = {}
environment: dict[str, str] = {}

configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)

Expand All @@ -39,7 +38,7 @@ def test_x86(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):

def test_x64(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
arch = "64"
environment: Dict[str, str] = {}
environment: dict[str, str] = {}

configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)

Expand All @@ -56,7 +55,7 @@ def test_x64(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
)
def test_arm(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
arch = "ARM64"
environment: Dict[str, str] = {}
environment: dict[str, str] = {}

configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)

Expand Down

0 comments on commit da16b78

Please sign in to comment.