8000 Fixing WASI tests? · python/cpython@9962c39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9962c39

Browse files
aivarskgpshead
authored andcommitted
Fixing WASI tests?
1 parent db37d63 commit 9962c39

File tree

< 8000 h2 class="mx-2 f4 prc-Heading-Heading-6CmGO">1 file changed
+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_json/test_recursion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def default(self, o):
5959
self.assertEqual(enc.encode(JSONTestObject), '"JSONTestObject"')
6060
enc.recurse = True
6161
try:
62-
enc.encode(JSONTestObject)
62+
with support.infinite_recursion(5000):
63+
enc.encode(JSONTestObject)
6364
except ValueError as exc:
6465
self.assertEqual(exc.__notes__[:2],
6566
["when serializing list item 0",

0 commit comments

Comments
 (0)
0