diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2010-05-09 13:59:28 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2010-05-09 13:59:28 +0000 |
commit | e65225b45da03ea23aa0d3d20ac72c12aba2e5d1 (patch) | |
tree | 40668c12eda8d6ab745770470e55eb07b6dc2818 /lib/python/sectracker_test | |
parent | 3f2a5a1c5332d458b936f9009651ddb636600de3 (diff) |
sectracker.parsers._annotationdispatcher: return annotation
No longer pass in the list to add to.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@14653 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/sectracker_test')
-rw-r--r-- | lib/python/sectracker_test/test_parsers.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/python/sectracker_test/test_parsers.py b/lib/python/sectracker_test/test_parsers.py index 10bf0f1e59..20a5f29712 100644 --- a/lib/python/sectracker_test/test_parsers.py +++ b/lib/python/sectracker_test/test_parsers.py @@ -114,14 +114,9 @@ for (line, res, xmsgs) in [ (Message("CVE", 17, "error", "invalid pseudo-version: 'garbled'"),)), ]: - anns = [] diag = sectracker.diagnostics.Diagnostics() diag.setlocation("CVE", 17) - p._annotationdispatcher(line, diag, anns) + r = p._annotationdispatcher(line, diag) msgs = diag.messages() assert tuple(msgs) == xmsgs, repr(msgs) - if anns: - r = anns[0] - else: - r = None - assert r == res, repr(anns) + assert r == res, repr(r) |