MCPcopy Create free account
hub / github.com/apache/arrow / test_escaping_in_docstring

Function test_escaping_in_docstring

python/pyarrow/tests/test_util.py:171–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170
171def test_escaping_in_docstring():
172 docstr = textwrap.dedent(
173 """
174 This is the func_f method.
175
176 { We can escape curly braces like this. }
177
178 Examples
179 --------
180 We should replace curly brace usage in doctests.
181
182 >>> dict(x = "x", y = "y")
183 >>> set((1, 2, 3))
184 """
185 )
186 assert func_f.__doc__ == docstr
187
188
189def exhibit_signal_refcycle():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected