Skip to content

Commit a089371

Browse files
committed
Revert "Base debug on Py_REF_DEBUG"
This reverts commit 86f2a01.
1 parent d025d17 commit a089371

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
@@ -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
@@ -3670,7 +3670,7 @@ make_abi_info(void)
36703670
goto error;
36713671
}
36723672

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

0 commit comments

Comments
 (0)