diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 0a5d462..3addd7c 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -1,12 +1,16 @@ -from builtins import type as Type from collections import namedtuple +import sys from typing import Union import pytest import bankid - +if sys.version_info >= (3, 9): + from builtins import type as Type +else: + # Remove once PyBankID no longer support Python 3.8 or lower + from typing import Type @pytest.mark.parametrize(