]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132719: Fix AMD64 FreeBSD14/15 3.x failures - `test_rlock_locked_2processes` used...
authorDuprat <yduprat@gmail.com>
Mon, 21 Apr 2025 20:59:15 +0000 (22:59 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Apr 2025 20:59:15 +0000 (13:59 -0700)
* Fix creation of resvariable

Lib/test/_test_multiprocessing.py

index be6efc49e9489e38f5818084d4f4bcb3bf4e2855..58d8a5eae8a2ce226d1c24d3869c8363a4825712 100644 (file)
@@ -1588,7 +1588,7 @@ class _TestLock(BaseTestCase):
 
         rlock = self.RLock()
         event = self.Event()
-        res = Value('b', 0)
+        res = self.Value('b', 0)
         # target is the same as for the test_lock_locked_2processes test.
         p = self.Process(target=self._test_lock_locked_2processes,
                          args=(rlock, event, res))