mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-111809: Fix test_deep_repr
from test_userdict
on WASI (GH-112229)
This commit is contained in:
parent
10e1a0c916
commit
14e539f097
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
# Check every path through every method of UserDict
|
||||
|
||||
from test import mapping_tests
|
||||
from test import mapping_tests, support
|
||||
import unittest
|
||||
import collections
|
||||
|
||||
|
@ -213,6 +213,11 @@ class UserDictTest(mapping_tests.TestHashMappingProtocol):
|
|||
else:
|
||||
self.fail("g[42] didn't raise KeyError")
|
||||
|
||||
# Decorate existing test with recursion limit, because
|
||||
# the test is for C structure, but `UserDict` is a Python structure.
|
||||
test_repr_deep = support.infinite_recursion()(
|
||||
mapping_tests.TestHashMappingProtocol.test_repr_deep,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue