From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 50FE3158015 for ; Tue, 26 Dec 2023 17:45:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C9F32BC020; Tue, 26 Dec 2023 17:45:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71A612BC020 for ; Tue, 26 Dec 2023 17:45:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 75FD2335DEB for ; Tue, 26 Dec 2023 17:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0E38114B4 for ; Tue, 26 Dec 2023 17:45:13 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1703612638.036fefbbb07f089a3af2cd8bf423b0f4f606142b.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgcore:master commit in: tests/ebuild/ X-VCS-Repository: proj/pkgcore/pkgcore X-VCS-Files: tests/ebuild/test_atom.py X-VCS-Directories: tests/ebuild/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 036fefbbb07f089a3af2cd8bf423b0f4f606142b X-VCS-Branch: master Date: Tue, 26 Dec 2023 17:45:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ff64a6f9-e22f-43aa-8b09-f7b0e147e518 X-Archives-Hash: 7c8acad12d418e6016980c6676843aed commit: 036fefbbb07f089a3af2cd8bf423b0f4f606142b Author: Brian Harring gmail com> AuthorDate: Mon Dec 25 21:55:36 2023 +0000 Commit: Arthur Zamarin gentoo 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 gmail.com> Closes: https://github.com/pkgcore/pkgcore/pull/420 Signed-off-by: Arthur Zamarin 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 = []