diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-26 00:12:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 00:12:54 +0200 |
commit | 518595652759462b13904df767f69b8cc2c61143 (patch) | |
tree | 28cf498655b4c223ab6e6daab68408663a196c3f /Lib/test/test_marshal.py | |
parent | ca58e4a2c596d1b4cdcae9ec92844d3d3272c4ce (diff) | |
download | cpython-518595652759462b13904df767f69b8cc2c61143.tar.gz cpython-518595652759462b13904df767f69b8cc2c61143.zip |
gh-69443: Add test.support.Py_DEBUG constant (#93226)
Diffstat (limited to 'Lib/test/test_marshal.py')
-rw-r--r-- | Lib/test/test_marshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py index aae86cc257d..882a819ca80 100644 --- a/Lib/test/test_marshal.py +++ b/Lib/test/test_marshal.py @@ -256,7 +256,7 @@ class BugsTestCase(unittest.TestCase): # The max stack depth should match the value in Python/marshal.c. # BUG: https://bugs.python.org/issue33720 # Windows always limits the maximum depth on release and debug builds - #if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'): + #if os.name == 'nt' and support.Py_DEBUG: if os.name == 'nt': MAX_MARSHAL_STACK_DEPTH = 1000 else: |