11 lines
261 B
Python
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)
|