From 036fefbbb07f089a3af2cd8bf423b0f4f606142b Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Mon, 25 Dec 2023 13:55:36 -0800 Subject: 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 Closes: https://github.com/pkgcore/pkgcore/pull/420 Signed-off-by: Arthur Zamarin --- 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 d13efa83..3fa193ae 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 = [] -- cgit v1.2.3-65-gdbad