]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115119: Remove superfluous TEST_COVERAGE private macro from _decimal module (GH...
authorSergey B Kirpichev <skirpichev@gmail.com>
Mon, 1 Jun 2026 18:41:21 +0000 (21:41 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2026 18:41:21 +0000 (13:41 -0500)
It was previously shared with `libmpdec`, which is no longer vendored.

Modules/_decimal/_decimal.c
configure
configure.ac

index 2760792a3fe18ed9e93e39e64d727ec606377d15..4db1b60be77844d0abd61fedff82302a76fee6a9 100644 (file)
@@ -188,7 +188,7 @@ find_state_ternary(PyObject *left, PyObject *right, PyObject *modulus)
  *    sizeof(size_t) == sizeof(mpd_uint_t) == sizeof(mpd_ssize_t)
  */
 
-#ifdef TEST_COVERAGE
+#ifdef Py_DEBUG
   #undef Py_LOCAL_INLINE
   #define Py_LOCAL_INLINE Py_LOCAL
 #endif
index 81862372f7d7774f51b9834de7b57f70a08d2f2f..94735c8d018a1f79a0bb177e2da208d6af27405f 100755 (executable)
--- a/configure
+++ b/configure
@@ -16593,12 +16593,6 @@ printf "%s\n" "yes" >&6; }
         have_mpdec=yes
 fi
 
-# Disable forced inlining in debug builds, see GH-94847
-if test "x$with_pydebug" = xyes
-then :
-  as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE"
-fi
-
 # Check whether _decimal should use a coroutine-local or thread-local context
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
 printf %s "checking for --with-decimal-contextvar... " >&6; }
index c8dce3fd49bda16af9f9000954b97015d4f7a7bd..9192211c7c1871d54c9412dcdfc87674d9c2c789 100644 (file)
@@ -4398,11 +4398,6 @@ PKG_CHECK_MODULES([LIBMPDEC], [libmpdec >= 2.5.0], [have_mpdec=yes], [
   ])
 ])
 
-# Disable forced inlining in debug builds, see GH-94847
-AS_VAR_IF(
-  [with_pydebug], [yes],
-  [AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])])
-
 # Check whether _decimal should use a coroutine-local or thread-local context
 AC_MSG_CHECKING([for --with-decimal-contextvar])
 AC_ARG_WITH(