summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/dep/test_use_reduce.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/tests/dep/test_use_reduce.py')
-rw-r--r--pym/portage/tests/dep/test_use_reduce.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/pym/portage/tests/dep/test_use_reduce.py b/pym/portage/tests/dep/test_use_reduce.py
index 3d89dbebd..4cb778a5c 100644
--- a/pym/portage/tests/dep/test_use_reduce.py
+++ b/pym/portage/tests/dep/test_use_reduce.py
@@ -169,9 +169,9 @@ class UseReduce(TestCase):
UseReduceTestCase(
"|| ( A B )",
expected_result = [ "||", ["A", "B"] ]),
- #UseReduceTestCase(
- # "|| ( ( A B ) C )",
- # expected_result = [ "||", [ ["A", "B"], "C"] ]),
+ UseReduceTestCase(
+ "|| ( ( A B ) C )",
+ expected_result = [ "||", [ ["A", "B"], "C"] ]),
UseReduceTestCase(
"|| ( A || ( B C ) )",
expected_result = [ "||", ["A", "||", ["B", "C"]]]),
@@ -183,7 +183,7 @@ class UseReduce(TestCase):
expected_result = [ "||", ["A", "||", ["B", "||", ["C", "D"], "E"]] ]),
UseReduceTestCase(
"( || ( ( ( A ) B ) ) )",
- expected_result = [ "||", ["A", "B"] ] ),
+ expected_result = ["A", "B"] ),
UseReduceTestCase(
"( || ( || ( ( A ) B ) ) )",
expected_result = [ "||", ["A", "B"] ]),
@@ -285,7 +285,7 @@ class UseReduce(TestCase):
UseReduceTestCase(
"( || ( ( ( A ) B ) ) )",
opconvert = True,
- expected_result = [ ["||", "A", "B"] ] ),
+ expected_result = [ "A", "B" ] ),
UseReduceTestCase(
"( || ( || ( ( A ) B ) ) )",
opconvert = True,
@@ -496,7 +496,12 @@ class UseReduce(TestCase):
)
for test_case in test_cases:
- self.assertEqual(test_case.run(), test_case.expected_result)
+ # If it fails then show the input, since lots of our
+ # test cases have the same output but different input,
+ # making it difficult deduce which test has failed.
+ self.assertEqual(test_case.run(), test_case.expected_result,
+ "input: '%s' result: %s != %s" % (test_case.deparray,
+ test_case.run(), test_case.expected_result))
for test_case in test_cases_xfail:
self.assertRaisesMsg(test_case.deparray, (InvalidDependString, ValueError), test_case.run)