Fix build with Python 3.13.0a1

Fixes https://bugzilla.redhat.com/2245829
This commit is contained in:
Miro Hrončok 2023-11-22 12:21:53 +01:00
parent 4bfab74929
commit aa6bdfbc8f
2 changed files with 29 additions and 0 deletions

View File

@ -11,6 +11,10 @@ License: MIT
URL: https://github.com/benjaminp/six
Source0: %{pypi_source six}
# tkinter.tix was removed from Python 3.13, skip the test
# https://github.com/benjaminp/six/pull/377
Patch: tkinter.tix-was-removed-from-Python-3.13.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel

View File

@ -0,0 +1,25 @@
From 150328a01168e80a358ffcfca321e9172ddf7680 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Thu, 19 Oct 2023 01:13:49 +0200
Subject: [PATCH] tkinter.tix was removed from Python 3.13, skip the test
---
test_six.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test_six.py b/test_six.py
index 7b8b03b..1fa8c4c 100644
--- a/test_six.py
+++ b/test_six.py
@@ -127,6 +127,8 @@ def test_move_items(item_name):
if item_name.startswith("tkinter"):
if not have_tkinter:
pytest.skip("requires tkinter")
+ if item_name == "tkinter_tix" and sys.version_info >= (3, 13):
+ pytest.skip("tkinter.tix removed from Python 3.13")
if item_name.startswith("dbm_gnu") and not have_gdbm:
pytest.skip("requires gdbm")
raise
--
2.41.0