From 1be673c17b361c0d40a868abfdb0d667da2db609 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Oct 2010 02:40:40 -0700 Subject: [PATCH] UseReduceTestCase: Show whole string in exception --- pym/portage/tests/dep/test_use_reduce.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pym/portage/tests/dep/test_use_reduce.py b/pym/portage/tests/dep/test_use_reduce.py index 938e8a749..026f194e2 100644 --- a/pym/portage/tests/dep/test_use_reduce.py +++ b/pym/portage/tests/dep/test_use_reduce.py @@ -24,10 +24,13 @@ class UseReduceTestCase(object): self.expected_result = expected_result def run(self): - return use_reduce(self.deparray, self.uselist, self.masklist, \ - self.matchall, self.excludeall, self.is_src_uri, self.eapi, \ + try: + return use_reduce(self.deparray, self.uselist, self.masklist, \ + self.matchall, self.excludeall, self.is_src_uri, self.eapi, \ self.opconvert, self.flat, self.is_valid_flag, self.token_class) - + except InvalidDependString as e: + raise InvalidDependString("%s: %s" % (e, self.deparray)) + class UseReduce(TestCase): def always_true(self, ununsed_parameter): -- 2.26.2