Skip to content

Commit 59abdf8

Browse files
authored
gh-115119: Remove superfluous TEST_COVERAGE private macro from _decimal module (GH-149756)
It was previously shared with `libmpdec`, which is no longer vendored.
1 parent 633b6be commit 59abdf8

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ find_state_ternary(PyObject *left, PyObject *right, PyObject *modulus)
188188
* sizeof(size_t) == sizeof(mpd_uint_t) == sizeof(mpd_ssize_t)
189189
*/
190190

191-
#ifdef TEST_COVERAGE
191+
#ifdef Py_DEBUG
192192
#undef Py_LOCAL_INLINE
193193
#define Py_LOCAL_INLINE Py_LOCAL
194194
#endif

configure

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4398,11 +4398,6 @@ PKG_CHECK_MODULES([LIBMPDEC], [libmpdec >= 2.5.0], [have_mpdec=yes], [
43984398
])
43994399
])
44004400

4401-
# Disable forced inlining in debug builds, see GH-94847
4402-
AS_VAR_IF(
4403-
[with_pydebug], [yes],
4404-
[AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])])
4405-
44064401
# Check whether _decimal should use a coroutine-local or thread-local context
44074402
AC_MSG_CHECKING([for --with-decimal-contextvar])
44084403
AC_ARG_WITH(

0 commit comments

Comments
 (0)