summaryrefslogtreecommitdiff
path: root/morphlib/builddependencygraph.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-16 11:30:16 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-16 11:34:57 +0000
commit724274268ee6423da508499a31450b08e20316d7 (patch)
tree10bb82967b80ce42413a5dfbe8116de76aa08ddf /morphlib/builddependencygraph.py
parent0f14928fb700d14ed1ebb8675c26b263bf2bc58c (diff)
downloadmorph-724274268ee6423da508499a31450b08e20316d7.tar.gz
Add first tests for BuildDependencyGraph.
Diffstat (limited to 'morphlib/builddependencygraph.py')
-rw-r--r--morphlib/builddependencygraph.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/builddependencygraph.py b/morphlib/builddependencygraph.py
index 146cdc54..7a432005 100644
--- a/morphlib/builddependencygraph.py
+++ b/morphlib/builddependencygraph.py
@@ -45,16 +45,16 @@ class Node(object):
def depends_on(self, other):
return other in self.dependencies
- def __str__(self):
+ def __str__(self): # pragma: no cover
return '%s (%s)' % (self.morphology.name, self.morphology.kind)
- def __deepcopy__(self, memo):
+ def __deepcopy__(self, memo): # pragma: no cover
return Node(self.morphology)
class NodeList(list):
- def __deepcopy__(self, memo):
+ def __deepcopy__(self, memo): # pragma: no cover
nodes = NodeList()
old_to_new = {}
@@ -73,7 +73,7 @@ class NodeList(list):
return nodes
-class BuildDependencyGraph(object):
+class BuildDependencyGraph(object): # pragma: no cover
def __init__(self, loader, morphology):
self.loader = loader