File: test_deprecation.py

package info (click to toggle)
python-ruyaml 0.91.0-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,668 kB
  • sloc: python: 17,840; makefile: 197; sh: 13
file content (14 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
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