]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Do not use wrappers for samba.tests.docs
authorAndreas Schneider <asn@samba.org>
Wed, 10 Sep 2025 11:31:11 +0000 (13:31 +0200)
committerAnoop C S <anoopcs@samba.org>
Wed, 10 Sep 2025 19:21:55 +0000 (19:21 +0000)
We will run into issues with Python 3.14 passing sockets for
concurrently running tasks.

https://bugzilla.samba.org/show_bug.cgi?id=15910

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Wed Sep 10 19:21:55 UTC 2025 on atb-devel-224

selftest/tests.py

index d7d13a6d609d21a91555387dc03586ae636a83b9..c00acb434e38b6f563a4a7261818e9f4de278bc6 100644 (file)
@@ -57,7 +57,14 @@ planpythontestsuite("none", "samba.tests.source")
 planpythontestsuite("none", "samba.tests.source_chars")
 
 if have_man_pages_support:
-    planpythontestsuite("none", "samba.tests.docs")
+    # This is a unit test which doesn't need any wrappers. We unset LD_PRELOAD
+    # as it is causing issues with Python >= 3.14 passing sockets around if a
+    # task is running concurrently.
+    planpythontestsuite(
+        "none",
+        "samba.tests.docs",
+        environ={'LD_PRELOAD': ''}
+    )
 
 try:
     import testscenarios