diff options
author | kvukic <vukic.kresimir@gmail.com> | 2017-12-27 21:27:47 +0100 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-12-29 11:33:47 -0500 |
commit | 8529f2aee33ae793c9ce362a45370b98f675370a (patch) | |
tree | 1c227928dbd5a0fccd6fe4cf197878c9de32a06a /objectivec/DevTools | |
parent | 099d99759101c295244c24d8954ec85b8ac65ce3 (diff) | |
download | protobuf-8529f2aee33ae793c9ce362a45370b98f675370a.tar.gz protobuf-8529f2aee33ae793c9ce362a45370b98f675370a.tar.bz2 protobuf-8529f2aee33ae793c9ce362a45370b98f675370a.zip |
Resolved issue #3510. Malformed errorr messages replaced with meaningful description
Diffstat (limited to 'objectivec/DevTools')
-rwxr-xr-x | objectivec/DevTools/pddm_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/objectivec/DevTools/pddm_tests.py b/objectivec/DevTools/pddm_tests.py index 8a73b842..9ac6a855 100755 --- a/objectivec/DevTools/pddm_tests.py +++ b/objectivec/DevTools/pddm_tests.py @@ -311,7 +311,7 @@ foo(x, y) mc = pddm.MacroCollection(f) try: result = mc.Expand('foo(A,B)') - self.fail('Should throw exception, entry %d' % idx) + self.fail('Should throw exception! Test failed to catch recursion.') except pddm.PDDMError as e: self.assertEqual(e.message, 'Found macro recusion, invoking "foo(1, A)":\n...while expanding "bar(1, A)".\n...while expanding "foo(A,B)".') @@ -483,7 +483,7 @@ foo sf = pddm.SourceFile(f) try: sf.ProcessContent() - self.fail('Should throw exception, entry %d' % idx) + self.fail('Should throw exception! Test failed to catch macro parsing error.') except pddm.PDDMError as e: self.assertEqual(e.message, 'Attempt to redefine macro: "PDDM-DEFINE mumble(x_)"\n' @@ -503,7 +503,7 @@ foo sf = pddm.SourceFile(f) try: sf.ProcessContent() - self.fail('Should throw exception, entry %d' % idx) + self.fail('Should throw exception! Test failed to catch expand error.') except pddm.PDDMError as e: self.assertEqual(e.message, 'No macro named "foobar".\n' |