diff options
Diffstat (limited to 'networkx/readwrite/tests/test_edgelist.py')
-rw-r--r-- | networkx/readwrite/tests/test_edgelist.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networkx/readwrite/tests/test_edgelist.py b/networkx/readwrite/tests/test_edgelist.py index f159f2b1..de3f0146 100644 --- a/networkx/readwrite/tests/test_edgelist.py +++ b/networkx/readwrite/tests/test_edgelist.py @@ -250,7 +250,7 @@ class TestEdgelist: nx.write_edgelist(G, fname) H = nx.read_edgelist(fname) H2 = nx.read_edgelist(fname) - assert H != H2 # they should be different graphs + assert H is not H2 # they should be different graphs G.remove_node("g") # isolated nodes are not written in edgelist assert_nodes_equal(list(H), list(G)) assert_edges_equal(list(H.edges()), list(G.edges())) @@ -263,7 +263,7 @@ class TestEdgelist: nx.write_edgelist(G, fname) H = nx.read_edgelist(fname, create_using=nx.DiGraph()) H2 = nx.read_edgelist(fname, create_using=nx.DiGraph()) - assert H != H2 # they should be different graphs + assert H is not H2 # they should be different graphs G.remove_node("g") # isolated nodes are not written in edgelist assert_nodes_equal(list(H), list(G)) assert_edges_equal(list(H.edges()), list(G.edges())) @@ -288,7 +288,7 @@ class TestEdgelist: nx.write_edgelist(G, fname) H = nx.read_edgelist(fname, nodetype=int, create_using=nx.MultiGraph()) H2 = nx.read_edgelist(fname, nodetype=int, create_using=nx.MultiGraph()) - assert H != H2 # they should be different graphs + assert H is not H2 # they should be different graphs assert_nodes_equal(list(H), list(G)) assert_edges_equal(list(H.edges()), list(G.edges())) os.close(fd) @@ -300,7 +300,7 @@ class TestEdgelist: nx.write_edgelist(G, fname) H = nx.read_edgelist(fname, nodetype=int, create_using=nx.MultiDiGraph()) H2 = nx.read_edgelist(fname, nodetype=int, create_using=nx.MultiDiGraph()) - assert H != H2 # they should be different graphs + assert H is not H2 # they should be different graphs assert_nodes_equal(list(H), list(G)) assert_edges_equal(list(H.edges()), list(G.edges())) os.close(fd) |