Skip to content

Commit

Permalink
fix(tests): Use old style annotations for backwards compatibility in …
Browse files Browse the repository at this point in the history
…unit tests.
  • Loading branch information
Spill-Tea committed Dec 9, 2024
1 parent 50d58a1 commit 4e2379a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Pytest Fixtures and Utilities."""

from __future__ import annotations

import logging
import os
from typing import Callable, Generator, Optional
Expand Down
2 changes: 2 additions & 0 deletions tests/test_bench.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Test Expected Behavior of the EpiLog Benchmark Module."""

from __future__ import annotations

import logging
from io import StringIO
from typing import Generator, Tuple
Expand Down
6 changes: 4 additions & 2 deletions tests/test_manager.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""Unit tests to examine the Expected Behavior of the EpiLog Logging Manager."""

from __future__ import annotations

import logging
import sys
from io import IOBase, StringIO
from typing import Callable, Union
from typing import Callable, Tuple, Union

import pytest

Expand All @@ -14,7 +16,7 @@
@pytest.mark.parametrize("names", [("a", "b", "c"), ("b", "c", "d", "e")])
@pytest.mark.parametrize("fn_name", ["get_logger", "dispatch"])
def test_get_logger(
names: tuple[str],
names: Tuple[str],
fn_name: str,
build_manager: Callable[..., EpiLog],
) -> None:
Expand Down

0 comments on commit 4e2379a

Please sign in to comment.