diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-03-17 10:06:09 +0100 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-03-27 10:25:24 +0200 |
commit | 9d36be993d2db2f099372f7252b32a2e53621bf8 (patch) | |
tree | 00e29db7117f4eb41574eb75f614af24a93897e0 /lib/python/sectracker_test | |
parent | e16095fcab4faedc9fac21db4bc31c27954c5017 (diff) |
parsers: make classes mutable
The parser is not read-only but has write support, so it makes more
sense to have mutable classes so that API users can modify them
as appopriate rather than going through hoops to clone objects
in order to modify something.
Diffstat (limited to 'lib/python/sectracker_test')
-rw-r--r-- | lib/python/sectracker_test/test_parsers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/sectracker_test/test_parsers.py b/lib/python/sectracker_test/test_parsers.py index 060a97ed7e..132b4e30e9 100644 --- a/lib/python/sectracker_test/test_parsers.py +++ b/lib/python/sectracker_test/test_parsers.py @@ -105,7 +105,7 @@ for (line, res, xmsgs) in [ "explanation goes here", []), ()), ('\t{CVE-2009-1234 CVE-2009-1235}', XrefAnnotation(17, "xref", - tuple("CVE-2009-1234 CVE-2009-1235".split())), + ["CVE-2009-1234", "CVE-2009-1235"]), ()), ('\t{}', None, (Message("CVE", 17, "error", "empty cross-reference"),)), |