File: skip-gstreamer-replaygain-python314.patch

package info (click to toggle)
beets 2.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,072 kB
  • sloc: python: 46,469; javascript: 8,018; xml: 334; sh: 245; makefile: 125
file content (48 lines) | stat: -rw-r--r-- 1,435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Pieter Lenaerts <plenae@disroot.org>
Date: Sat, 28 Dec 2024 00:00:00 +0000
Subject: Skip GStreamer replaygain tests on Python 3.14

The python-gi bindings for GStreamer are not yet compatible with Python 3.14,
causing ImportError when trying to import _gi_gst from gi.overrides.

This only affects the replaygain plugin's GStreamer backend tests.
The BPD tests are already skipped via pytest.importorskip when GStreamer
is unavailable.

Forwarded: not-needed
---
 test/plugins/test_replaygain.py | 9 +++++++++
 1 file changed, 9 insertions(+)

--- a/test/plugins/test_replaygain.py
+++ b/test/plugins/test_replaygain.py
@@ -14,6 +14,7 @@
 
 
 import unittest
+import sys
 from typing import ClassVar
 
 import pytest
@@ -325,6 +326,10 @@
             assert item.rg_album_gain is not None
 
 
+@unittest.skipIf(
+    sys.version_info >= (3, 14),
+    "GStreamer python-gi bindings not compatible with Python 3.14"
+)
 @unittest.skipIf(not GST_AVAILABLE, "gstreamer cannot be found")
 class ReplayGainGstCliTest(
     ReplayGainCliTest, ReplayGainTestCase, GstBackendMixin
@@ -364,6 +369,10 @@
             assert item.rg_album_gain is not None
 
 
+@unittest.skipIf(
+    sys.version_info >= (3, 14),
+    "GStreamer python-gi bindings not compatible with Python 3.14"
+)
 @unittest.skipIf(not GST_AVAILABLE, "gstreamer cannot be found")
 class ReplayGainGstImportTest(ImportTest, ReplayGainTestCase, GstBackendMixin):
     pass