Skip to content

Commit

Permalink
Update tests/conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Sep 19, 2024
1 parent fe4093c commit ac5cdee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# tifffile/tests/conftest.py

from __future__ import annotations

import os
import sys
from typing import Any

if os.environ.get('VSCODE_CWD'):
# work around pytest not using PYTHONPATH in VSCode
Expand All @@ -10,10 +13,10 @@
)

if os.environ.get('SKIP_CODECS', None):
sys.modules['imagecodecs'] = None # type: ignore
sys.modules['imagecodecs'] = None # type: ignore[assignment]


def pytest_report_header(config, start_path):
def pytest_report_header(config: Any, start_path: Any) -> Any:
try:
from numpy import __version__ as numpy
from test_tifffile import config
Expand Down

0 comments on commit ac5cdee

Please sign in to comment.