Skip to content

Commit 86f2a01

Browse files
committed
Base debug on Py_REF_DEBUG
1 parent 989dd35 commit 86f2a01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
@@ -3662,7 +3662,7 @@ make_abi_info(void)
36623662
goto error;
36633663
}
36643664

3665-
#ifdef Py_DEBUG
3665+
#ifdef Py_REF_DEBUG
36663666
value = Py_True;
36673667
#else
36683668
value = Py_False;

0 commit comments

Comments
 (0)