aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2023-12-25 13:55:36 -0800
committerArthur Zamarin <arthurzam@gentoo.org>2023-12-26 19:43:58 +0200
commit036fefbbb07f089a3af2cd8bf423b0f4f606142b (patch)
tree3e36f9b451140561012e37ab72ea3dafea8ab65d
parentatom: limit the start of a slot to left of use components. (diff)
downloadpkgcore-036fefbbb07f089a3af2cd8bf423b0f4f606142b.tar.gz
pkgcore-036fefbbb07f089a3af2cd8bf423b0f4f606142b.tar.bz2
pkgcore-036fefbbb07f089a3af2cd8bf423b0f4f606142b.zip
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@gmail.com> Closes: https://github.com/pkgcore/pkgcore/pull/420 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--tests/ebuild/test_atom.py1
1 files changed, 1 insertions, 0 deletions
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 = []