test_backends.py 254 B

1234567891011121314
  1. import pytest
  2. import networkx as nx
  3. pytest.importorskip("scipy")
  4. pytest.importorskip("numpy")
  5. def test_dispatch_kwds_vs_args():
  6. G = nx.path_graph(4)
  7. nx.pagerank(G)
  8. nx.pagerank(G=G)
  9. with pytest.raises(TypeError):
  10. nx.pagerank()