Skip to content

Commit 7667836

Browse files
Skip the unbounded-recursion test on Pyodide
1 parent f1686b8 commit 7667836

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎simplejson/tests/test_custom_method_cycles.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from unittest import TestCase
1+
import sys
2+
from unittest import TestCase, skipIf
23

34
import simplejson as json
45

@@ -61,6 +62,8 @@ def test_repeated_reference_is_not_a_cycle(self):
6162
def test_acyclic_chain(self):
6263
self.assertEqual(json.loads(json.dumps(ForJson(ForJson(1)), for_json=True)), 1)
6364

65+
@skipIf(sys.platform == 'emscripten',
66+
'Pyodide cannot recover from unbounded recursion')
6467
def test_circular_checks_can_be_disabled(self):
6568
value = ForJson()
6669
value.value = value

0 commit comments

Comments
 (0)