Skip to content

Commit e9610b6

Browse files
committed
Revert "Base debug on Py_REF_DEBUG"
This reverts commit 86f2a01.
1 parent 75229a1 commit e9610b6

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
@@ -747,7 +747,7 @@ def test_abi_info(self):
747747
self.assertEqual(info.byteorder, sys.byteorder)
748748
for attr, flag in [
749749
("free_threaded", "Py_GIL_DISABLED"),
750-
("debug", "Py_REF_DEBUG"),
750+
("debug", "Py_DEBUG"),
751751
]:
752752
self.assertEqual(getattr(info, attr, None),
753753
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_REF_DEBUG
3665+
#ifdef Py_DEBUG
36663666
value = Py_True;
36673667
#else
36683668
value = Py_False;

0 commit comments

Comments
 (0)