File: test_deprecations.py

package info (click to toggle)
python-anyio 4.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,292 kB
  • sloc: python: 16,605; sh: 21; makefile: 9
file content (11 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from __future__ import annotations

import pytest

import anyio


def test_broken_worker_interpreter_deprecation() -> None:
    with pytest.warns(DeprecationWarning):
        DeprecatedClass = anyio.BrokenWorkerIntepreter
    assert DeprecatedClass is anyio.BrokenWorkerInterpreter