commit: 036fefbbb07f089a3af2cd8bf423b0f4f606142b Author: Brian Harring <ferringb <AT> gmail <DOT> com> AuthorDate: Mon Dec 25 21:55:36 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Dec 26 17:43:58 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=036fefbb
fix: add atom test for 'foo/bar-11-r3' CPV parsing was fixed (and test asserted) for this, but atom parsing should also have a test to ensure CPV changes don't let this slip through. Signed-off-by: Brian Harring <ferringb <AT> gmail.com> Closes: https://github.com/pkgcore/pkgcore/pull/420 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> tests/ebuild/test_atom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ebuild/test_atom.py b/tests/ebuild/test_atom.py index d13efa83c..3fa193aee 100644 --- a/tests/ebuild/test_atom.py +++ b/tests/ebuild/test_atom.py @@ -123,6 +123,7 @@ class TestAtom(TestRestriction): self.assertMatch(a, CPV.unversioned("kde-base/kde")) self.assertNotMatch(a, CPV.unversioned("kde-base/kde2")) self.assertMatch(a, CPV.versioned("kde-base/kde-3")) + pytest.raises(errors.MalformedAtom, self.kls, "foo/bar-11-r3") def make_atom(self, s, ops, ver): l = []
