The ctraits.c source contains various assert statements, but those assert statements aren't being executed in our CI runs, because we inherit a DNDEBUG setting from the Python build settings. For CI runs, it would be good to build the ctraits extension using undef_macros=["NDEBUG"] so that the asserts are exercised.
The
ctraits.c
source contains variousassert
statements, but those assert statements aren't being executed in our CI runs, because we inherit aDNDEBUG
setting from the Python build settings. For CI runs, it would be good to build thectraits
extension usingundef_macros=["NDEBUG"]
so that theassert
s are exercised.