Issue #26168: Fixed possible refleaks in failing Py_BuildValue() with the "N"
format unit.
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 96666d1..d262d99 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -236,6 +236,9 @@
                              'return_result_with_error.* '
                              'returned a result with an error set')
 
+    def test_buildvalue_N(self):
+        _testcapi.test_buildvalue_N()
+
 
 @unittest.skipUnless(threading, 'Threading required for this test.')
 class TestPendingCalls(unittest.TestCase):