MCPcopy Index your code
hub / github.com/python/cpython / test_field_recursive_repr

Method test_field_recursive_repr

Lib/test/test_dataclasses/__init__.py:81–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.assertEqual(repr_output, expected_output)
80
81 def test_field_recursive_repr(self):
82 rec_field = field()
83 rec_field.type = rec_field
84 rec_field.name = "id"
85 repr_output = repr(rec_field)
86
87 self.assertIn(",type=...,", repr_output)
88
89 def test_recursive_annotation(self):
90 class C:

Callers

nothing calls this directly

Calls 2

assertInMethod · 0.95
fieldFunction · 0.85

Tested by

no test coverage detected