diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-22 22:55:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 22:55:25 (GMT) |
commit | 14e539f0977aaf2768c58f1dcbbbab5ad0205ec5 (patch) | |
tree | 8e0524cb46d4e9acbfce34a056c82ffb6048f0f1 | |
parent | 10e1a0c91613908757a5b97602834defbe575ab0 (diff) | |
download | cpython-14e539f0977aaf2768c58f1dcbbbab5ad0205ec5.zip cpython-14e539f0977aaf2768c58f1dcbbbab5ad0205ec5.tar.gz cpython-14e539f0977aaf2768c58f1dcbbbab5ad0205ec5.tar.bz2 |
gh-111809: Fix `test_deep_repr` from `test_userdict` on WASI (GH-112229)
-rw-r--r-- | Lib/test/test_userdict.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_userdict.py b/Lib/test/test_userdict.py index 483910a..9a03f2d 100644 --- a/Lib/test/test_userdict.py +++ b/Lib/test/test_userdict.py @@ -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__": |