https://bugs.gentoo.org/978334
https://gitlab.freedesktop.org/xdg/pyxdg/-/merge_requests/19

From 95d68296496d7461229cc8569cbf96aee54531b0 Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Sun, 19 Jul 2026 17:16:01 +0300
Subject: [PATCH] test_mime: update test to pass with >=shared-mime-info-2.5

Bug: https://bugs.gentoo.org/978334
See-Also: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/302
Signed-off-by: Alfred Wingate <parona@protonmail.com>
--- a/test/test_mime.py
+++ b/test/test_mime.py
@@ -152,9 +152,11 @@ class MimeTest(MimeTestBase):
     def test_inheritance(self):
         text_python = Mime.lookup('text/x-python')
         self.check_mimetype(text_python, 'text', 'x-python')
+        text_cython = Mime.lookup('text/x-cython')
         text_plain = Mime.lookup('text/plain')
         app_executable = Mime.lookup('application/x-executable')
-        self.assertEqual(text_python.inherits_from(), set([text_plain, app_executable]))
+        # shared-mime-info-2.5 changed inheritance from text/plain to text/x-cython
+        self.assertIn(text_python.inherits_from(), (set([text_cython, app_executable]), set([text_plain, app_executable])))
     
     def test_is_text(self):
         assert Mime._is_text(b'abcdef \n')
-- 
2.55.0

