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.csource contains variousassertstatements, but those assert statements aren't being executed in our CI runs, because we inherit aDNDEBUGsetting from the Python build settings. For CI runs, it would be good to build thectraitsextension usingundef_macros=["NDEBUG"]so that theasserts are exercised.