Skip to content

Commit 6887d6c

Browse files
committed
Base debug on Py_REF_DEBUG
1 parent 94b7f40 commit 6887d6c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ def test_abi_info(self):
746746
self.assertEqual(info.pointer_bits, pointer_bits)
747747
for attr, flag in [
748748
("free_threaded", "Py_GIL_DISABLED"),
749-
("debug", "Py_DEBUG"),
749+
("debug", "Py_REF_DEBUG"),
750750
]:
751751
self.assertEqual(getattr(info, attr, None),
752752
bool(sysconfig.get_config_var(flag)))

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,7 +3670,7 @@ make_abi_info(void)
36703670
goto error;
36713671
}
36723672

3673-
#ifdef Py_DEBUG
3673+
#ifdef Py_REF_DEBUG
36743674
value = Py_True;
36753675
#else
36763676
value = Py_False;

0 commit comments

Comments
 (0)