summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraric <none@none>2006-11-10 16:35:40 +0000
committeraric <none@none>2006-11-10 16:35:40 +0000
commit615d65ad6b1246ca665e310ba9843c313eafb0ea (patch)
treec3dc769b1d62960269c2882e16d870cea8597b2f
parent02299af1a886d3eac6b17fe52313eaf79266418a (diff)
downloadnetworkx-615d65ad6b1246ca665e310ba9843c313eafb0ea.tar.gz
Adjust tests/tree.txt to work with new error message for adding
single node to tree --HG-- extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40446
-rw-r--r--networkx/tests/tree.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/networkx/tests/tree.txt b/networkx/tests/tree.txt
index d5479d48..6b4d4b84 100644
--- a/networkx/tests/tree.txt
+++ b/networkx/tests/tree.txt
@@ -15,11 +15,11 @@ Add node
>>> T.add_node(0)
Traceback (most recent call last):
...
-NetworkXError: adding single node 0 not allowed in tree
+NetworkXError: adding single node 0 not allowed in non-empty tree
>>> T.add_nodes_from(range(0,1))
Traceback (most recent call last):
...
-NetworkXError: adding single node 0 not allowed in tree
+NetworkXError: adding single node 0 not allowed in non-empty tree
Add leaf
@@ -116,11 +116,11 @@ Add node
>>> T.add_node(0)
Traceback (most recent call last):
...
-NetworkXError: adding single node 0 not allowed in tree
+NetworkXError: adding single node 0 not allowed in non-empty tree
>>> T.add_nodes_from(range(0,1))
Traceback (most recent call last):
...
-NetworkXError: adding single node 0 not allowed in tree
+NetworkXError: adding single node 0 not allowed in non-empty tree
Add leaf
@@ -218,7 +218,7 @@ NetworkXError: adding edge 1-4 not allowed in tree
>>> T.add_node(5)
Traceback (most recent call last):
...
-NetworkXError: adding single node 5 not allowed in tree
+NetworkXError: adding single node 5 not allowed in non-empty tree
>>> T.add_edge(4,5)
>>> print sorted(T.edges())