summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_marshal.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-06-04 20:25:00 (GMT)
committerGitHub <noreply@github.com>2018-06-04 20:25:00 (GMT)
commit2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b (patch)
tree733d41607d331ca4401a34ad06908f5549c3aaa1 /Lib/test/test_marshal.py
parentb609e687a076d77bdd687f5e4def85e29a044bfc (diff)
downloadcpython-2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b.zip
cpython-2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b.tar.gz
cpython-2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b.tar.bz2
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
Diffstat (limited to 'Lib/test/test_marshal.py')
-rw-r--r--Lib/test/test_marshal.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index 29dda98..a8a43d2 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