summaryrefslogtreecommitdiff
path: root/networkx/utils/tests/test__init.py
blob: ecbcce36df7cd37781dd45879f63f7d6f55e5567 (plain)
1
2
3
4
5
6
7
8
9
10
11
import pytest


def test_utils_namespace():
    """Ensure objects are not unintentionally exposed in utils namespace."""
    with pytest.raises(ImportError):
        from networkx.utils import nx
    with pytest.raises(ImportError):
        from networkx.utils import sys
    with pytest.raises(ImportError):
        from networkx.utils import defaultdict, deque