test__init.py 363 B

1234567891011
  1. import pytest
  2. def test_utils_namespace():
  3. """Ensure objects are not unintentionally exposed in utils namespace."""
  4. with pytest.raises(ImportError):
  5. from networkx.utils import nx
  6. with pytest.raises(ImportError):
  7. from networkx.utils import sys
  8. with pytest.raises(ImportError):
  9. from networkx.utils import defaultdict, deque