Skip to content

Commit

Permalink
fix for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 committed Jan 9, 2024
1 parent f13987b commit b0df9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from io import StringIO
from pathlib import Path
from tempfile import NamedTemporaryFile, TemporaryDirectory
from typing import Any, cast, Dict, Generator, List
from typing import Any, cast, Dict, Generator, List, Tuple # TODO: Remove `Tuple` after dropping Python 3.8.
from unittest import mock, TestCase

import requests
Expand Down Expand Up @@ -312,7 +312,7 @@ def run_on_file(path: Path, short_path: str, retrieval_flags: int = 0) -> Any:
)

result_set: set[Path] = cast(set[Path], set(results))
expected: list[tuple[Path, str]] = []
expected: list[Tuple[Path, str]] = []
self.assertEqual(4, len(results), results)
for name in ['directory/file.txt', 'nested.tar.bz2', 'nested_tar_bz2']:
result_set.remove(directory / name)
Expand Down

0 comments on commit b0df9e0

Please sign in to comment.