2024-12-12 20:21:09 +03:00

11 lines
261 B
Python

import pytest
import importlib
def test_compat_warn():
with pytest.warns(DeprecationWarning):
# something else is importing this,
import toolz.compatibility
# reload to be sure we warn
importlib.reload(toolz.compatibility)