summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-07-18 08:13:22 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:53:48 +0200
commitd3c6c1030faff6bb0172d530e2f30c9115c17bbb (patch)
tree3e4191aff1c47226431d5157664b881da0d0723b
parentd464fb1f18173fea1aa3028cf44002944419b6ee (diff)
downloadgobject-introspection-d3c6c1030faff6bb0172d530e2f30c9115c17bbb.tar.gz
tests: remove manual validation code
We're already validating input .xml files so no need to duplicate this...
-rw-r--r--tests/scanner/annotationparser/test_parser.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py
index 2ebb6c28..50a4fcc9 100644
--- a/tests/scanner/annotationparser/test_parser.py
+++ b/tests/scanner/annotationparser/test_parser.py
@@ -99,10 +99,7 @@ class TestCommentBlock(unittest.TestCase):
parsed += '<docblock>\n'
parsed += ' <identifier>\n'
- # An identifier name is always required, but we can't trust our
- # own parser to ensure this when testing so fall back to an empty
- # string when no name has been parsed...
- parsed += ' <name>%s</name>\n' % (docblock.name or '', )
+ parsed += ' <name>%s</name>\n' % (docblock.name, )
if docblock.options.values:
parsed += ' <annotations>\n'
for key, value in docblock.options.values:
@@ -195,7 +192,6 @@ class TestCommentBlock(unittest.TestCase):
if docblock.find(ns('{}identifier')) is not None:
expected += ' <identifier>\n'
- # Expecting an identifier name is required, don't bother checking if it's there or not
expected += ' <name>%s</name>\n' % (docblock.find(ns('{}identifier/{}name')).text, )
annotations = docblock.find(ns('{}identifier/{}annotations'))
if annotations is not None: