commit: f0274d0857afb8617ee6905bb6312afa6d1deb1b
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 19:14:36 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 19:14:36 2022 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=f0274d08
sync with pkgcore's error message format
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json | 2 +-
tests/checks/test_metadata.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json
b/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json
index 78926e07..47baaac2 100644
--- a/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json
+++ b/testdata/data/repos/standalone/SourcingCheck/InvalidEapi/expected.json
@@ -1,2 +1,2 @@
{"__class__": "InvalidEapi", "category": "SourcingCheck", "package":
"InvalidEapi", "version": "0", "attr": "eapi", "msg": "EAPI '9999' is not
supported"}
-{"__class__": "InvalidEapi", "category": "SourcingCheck", "package":
"InvalidEapi", "version": "1", "attr": "eapi", "msg": "invalid EAPI:
'invalid!'"}
+{"__class__": "InvalidEapi", "category": "SourcingCheck", "package":
"InvalidEapi", "version": "1", "attr": "eapi", "msg": "invalid EAPI 'invalid!'"}
diff --git a/tests/checks/test_metadata.py b/tests/checks/test_metadata.py
index f68fb6fa..cc074d93 100644
--- a/tests/checks/test_metadata.py
+++ b/tests/checks/test_metadata.py
@@ -430,7 +430,7 @@ class TestSourcingCheck(misc.ReportTestCase, misc.Tmpdir):
"""))
r = self.assertReport(check, self.repo)
assert isinstance(r, metadata.InvalidEapi)
- assert f"invalid EAPI: '{eapi}'" in str(r)
+ assert f"invalid EAPI '{eapi}'" in str(r)
def test_sourcing_error(self):
check = self.mk_check()