1 2 3 4 5 6
import pytest def test_namespace_alias(): with pytest.raises(ImportError): from networkx import nx