We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43664d7 commit a5c0fb7Copy full SHA for a5c0fb7
src/_pytest/python_api.py
@@ -101,9 +101,9 @@ def _check_type(self):
101
pass
102
103
104
-def recursive_map(f, x):
+def _recursive_list_map(f, x):
105
if isinstance(x, list):
106
- return list(recursive_map(f, xi) for xi in x)
+ return list(_recursive_list_map(f, xi) for xi in x)
107
else:
108
return f(x)
109
@@ -114,7 +114,7 @@ class ApproxNumpy(ApproxBase):
114
"""
115
116
def __repr__(self):
117
- list_scalars = recursive_map(self._approx_scalar, self.expected.tolist())
+ list_scalars = _recursive_list_map(self._approx_scalar, self.expected.tolist())
118
return "approx({!r})".format(list_scalars)
119
120
if sys.version_info[0] == 2:
0 commit comments