blob: 390c26c57fcc610c0d124e905a2a11253fcc0843 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# coding: utf-8
import sys
import pytest # type:ignore # NOQA
@pytest.mark.skipif(sys.version_info < (3, 7) or sys.version_info >= (3, 9), # type: ignore
reason='collections not available?')
def test_collections_deprecation() -> None:
with pytest.warns(DeprecationWarning):
from collections import Hashable # type: ignore # NOQA
|