From: Colin Walters Date: Mon, 17 Dec 2012 16:08:05 +0000 (-0500) Subject: tests/annotationparser: Drop Python API usage down to 2.6, not 2.7 X-Git-Tag: GOBJECT_INTROSPECTION_1_35_4~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=651ba3d400e9efd75e1618066cd1b485cccac1a2;p=platform%2Fupstream%2Fgobject-introspection.git tests/annotationparser: Drop Python API usage down to 2.6, not 2.7 .iterfind() is new in 2.7, but we claim 2.6 support, as I use on RHEL6. --- diff --git a/tests/scanner/annotationparser/test_parser.py b/tests/scanner/annotationparser/test_parser.py index 86cd41a..a1c5866 100644 --- a/tests/scanner/annotationparser/test_parser.py +++ b/tests/scanner/annotationparser/test_parser.py @@ -145,12 +145,12 @@ def expected2tree(docblock): annotations = docblock.find('identifier/annotations') if annotations is not None: expected += ' \n' - for annotation in annotations.iterfind('annotation'): + for annotation in annotations.findall('annotation'): expected += ' \n' expected += ' %s\n' % (annotation.find('name').text, ) if annotation.find('options') is not None: expected += ' \n' - for option in annotation.iterfind('options/option'): + for option in annotation.findall('options/option'): expected += '