Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(124064)

Unified Diff: Lib/test/test_marshal.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_mailcap.py ('k') | Lib/test/test_mmap.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_marshal.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_marshal.py Wed Mar 02 00:01:35 2016 +0000
@@ -196,16 +196,18 @@ class BugsTestCase(unittest.TestCase):
self.assertRaises(ValueError, marshal.loads, s)
def test_recursion_limit(self):
# 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'):
MAX_MARSHAL_STACK_DEPTH = 1000
+ elsf sys.platform == 'ios':
+ MAX_MARSHAL_STACK_DEPTH = 1500
else:
MAX_MARSHAL_STACK_DEPTH = 2000
for i in range(MAX_MARSHAL_STACK_DEPTH - 2):
last.append([0])
last = last[-1]
# Verify we don't blow out the stack with dumps/load.
data = marshal.dumps(head)
« no previous file with comments | « Lib/test/test_mailcap.py ('k') | Lib/test/test_mmap.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+