summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-11 13:07:20 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-11 13:07:20 -0800
commit3dd6cbc556458ff5776988d12927b9d93c326b64 (patch)
tree897335792fc03fb3c5d354f021da91c8594ce3c4 /lib
parent6ee2eb21dd2c3c32d115ebf28becc735311bb1a9 (diff)
downloadspack-3dd6cbc556458ff5776988d12927b9d93c326b64.tar.gz
spack-3dd6cbc556458ff5776988d12927b9d93c326b64.tar.bz2
spack-3dd6cbc556458ff5776988d12927b9d93c326b64.tar.xz
spack-3dd6cbc556458ff5776988d12927b9d93c326b64.zip
Fix #217: update spec_dag test for new `_cmp_key`.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/spec_dag.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/spack/spack/test/spec_dag.py b/lib/spack/spack/test/spec_dag.py
index 94438b6a0c..d3a4d77b32 100644
--- a/lib/spack/spack/test/spec_dag.py
+++ b/lib/spack/spack/test/spec_dag.py
@@ -340,16 +340,18 @@ class SpecDagTest(MockPackagesTest):
self.assertEqual(spec, expected_flat)
self.assertTrue(spec.eq_dag(expected_flat))
- self.assertEqual(spec, expected_normalized)
+ # Normalized has different DAG structure, so NOT equal.
+ self.assertNotEqual(spec, expected_normalized)
self.assertFalse(spec.eq_dag(expected_normalized))
- self.assertEqual(spec, non_unique_nodes)
+ # Again, different DAG structure so not equal.
+ self.assertNotEqual(spec, non_unique_nodes)
self.assertFalse(spec.eq_dag(non_unique_nodes))
spec.normalize()
# After normalizing, spec_dag_equal should match the normalized spec.
- self.assertEqual(spec, expected_flat)
+ self.assertNotEqual(spec, expected_flat)
self.assertFalse(spec.eq_dag(expected_flat))
self.assertEqual(spec, expected_normalized)