Skip to content

Commit ba9b182

Browse files
committed
TST: force reload (because doctest is importing the module)
1 parent 7dcce7a commit ba9b182

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

toolz/tests/test_compatibility.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import pytest
21

2+
import pytest
3+
import importlib
34

45
def test_compat_warn():
56
with pytest.warns(DeprecationWarning):
7+
# something else is importing this,
68
import toolz.compatibility
9+
# reload to be sure we warn
10+
importlib.reload(toolz.compatibility)

0 commit comments

Comments
 (0)