From 2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 4 Jun 2018 13:25:00 -0700 Subject: bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401) --- Lib/test/test_marshal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_marshal.py') diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py index 29dda987d0..a8a43d22bc 100644 --- a/Lib/test/test_marshal.py +++ b/Lib/test/test_marshal.py @@ -222,7 +222,10 @@ class BugsTestCase(unittest.TestCase): # Create a deeply nested structure. head = last = [] # The max stack depth should match the value in Python/marshal.c. - if os.name == 'nt' and hasattr(sys, 'gettotalrefcount'): + # 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': MAX_MARSHAL_STACK_DEPTH = 1000 else: MAX_MARSHAL_STACK_DEPTH = 2000 -- cgit v1.2.1