Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Nov 12, 2020
1 parent 384b416 commit 3057a64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions networkx/readwrite/tests/test_text.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
import networkx as nx
from textwrap import dedent

Expand Down Expand Up @@ -191,14 +192,12 @@ def test_undirected_tree_str():


def test_forest_str_errors():
import pytest

ugraph = nx.generators.complete_graph(3, create_using=nx.Graph)
ugraph = nx.complete_graph(3, create_using=nx.Graph)

with pytest.raises(nx.NetworkXNotImplemented):
nx.forest_str(ugraph)

dgraph = nx.generators.complete_graph(3, create_using=nx.DiGraph)
dgraph = nx.complete_graph(3, create_using=nx.DiGraph)

with pytest.raises(nx.NetworkXNotImplemented):
nx.forest_str(dgraph)
Expand Down

0 comments on commit 3057a64

Please sign in to comment.