summaryrefslogtreecommitdiffstats
path: root/_test/test_deprecation.py
blob: c6ed62e706c0b05e648283b9087727c74473b109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# coding: utf-8

import sys

import pytest  # NOQA


@pytest.mark.skipif(
    sys.version_info < (3, 7) or sys.version_info >= (3, 9),
    reason='collections not available?',
)
def test_collections_deprecation():
    with pytest.warns(DeprecationWarning):
        from collections import Hashable  # NOQA