diff --git a/_multibuild b/_multibuild
index 8cf2769..98d9f20 100644
--- a/_multibuild
+++ b/_multibuild
@@ -2,4 +2,5 @@
test-py39
test-py310
test-py311
+ test-py312
diff --git a/python-distributed.changes b/python-distributed.changes
index 8e4ce59..a35a707 100644
--- a/python-distributed.changes
+++ b/python-distributed.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Sun Feb 4 21:31:24 UTC 2024 - Ben Greiner
+
+- Add python312 test flavor
+
-------------------------------------------------------------------
Tue Jan 30 09:38:20 UTC 2024 - Dirk Müller
diff --git a/python-distributed.spec b/python-distributed.spec
index a89db0c..6c954c5 100644
--- a/python-distributed.spec
+++ b/python-distributed.spec
@@ -39,6 +39,13 @@
%define skip_python312 1
%bcond_without test
%endif
+%if "%{flavor}" == "test-py312"
+%define psuffix -test-py312
+%define skip_python39 1
+%define skip_python310 1
+%define skip_python311 1
+%bcond_without test
+%endif
%if "%{flavor}" == ""
%bcond_with test
%endif