File: test_compatibility.py

package info (click to toggle)
python-cytoolz 1.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 440 kB
  • sloc: python: 2,685; makefile: 36
file content (9 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import pytest
import importlib

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