public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-tornado] rawhide: Fix compatibility with Python 3.15
@ 2026-06-03  9:24 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-03  9:24 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-tornado
Branch : rawhide
Commit : 4cab4a73f800c6babb7dbfcbe32d683ca60ca0ed
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-05-19T16:27:42+02:00
Stats  : +29/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-tornado/c/4cab4a73f800c6babb7dbfcbe32d683ca60ca0ed?branch=rawhide

Log:
Fix compatibility with Python 3.15

---
diff --git a/Temporarily-disable-test-multi-process.patch b/Temporarily-disable-test-multi-process.patch
new file mode 100644
index 0000000..f535f36
--- /dev/null
+++ b/Temporarily-disable-test-multi-process.patch
@@ -0,0 +1,27 @@
+From a91f4a6d60fc30d8bc51d54410c815cca83e90e6 Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Tue, 27 Jan 2026 12:25:54 +0100
+Subject: [PATCH] Skip test_multi_process emitting a deprecation warning
+
+In RPM, the test emits a DeprecationWarning. Upstream test run doesn't.
+https://github.com/tornadoweb/tornado/issues/3623
+
+---
+ tornado/test/process_test.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tornado/test/process_test.py b/tornado/test/process_test.py
+index 0fdb941..37a2a72 100644
+--- a/tornado/test/process_test.py
++++ b/tornado/test/process_test.py
+@@ -48,6 +48,7 @@ class ProcessTest(unittest.TestCase):
+         signal.alarm(0)
+         super().tearDown()
+ 
++    @unittest.skip("DeprecationWarning: This process is multi-threaded, use of fork() may lead to deadlocks in the child.")
+     def test_multi_process(self):
+         # This test doesn't work on twisted because we use the global
+         # reactor and don't restore it to a sane state after the fork
+-- 
+2.52.0
+

diff --git a/python-tornado.spec b/python-tornado.spec
index e8307d1..c72fcfb 100644
--- a/python-tornado.spec
+++ b/python-tornado.spec
@@ -17,6 +17,8 @@ Summary:        Scalable, non-blocking web server and tools
 License:        Apache-2.0 
 URL:            https://www.tornadoweb.org
 Source0:        https://github.com/tornadoweb/tornado/archive/v%{version}/%{srcname}-%{version}.tar.gz
+# Fix for Python 3.15.0b1
+Patch:          Temporarily-disable-test-multi-process.patch
 
 BuildRequires:  gcc
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  9:24 [rpms/python-tornado] rawhide: Fix compatibility with Python 3.15 Karolina Surma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox