mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update test_userdict.py from 3.13.7
This commit is contained in:
1 parent
d732c307dc
commit
e00a95d15c
1 file changed
+6
-1
Vendored
+6
-1
@@ -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(25)(
|
||||
mapping_tests.TestHashMappingProtocol.test_repr_deep,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user