Skip to content

Commit a5c0fb7

Browse files
committed
Rename recursive_map -> _recursive_list_map as requested in review
1 parent 43664d7 commit a5c0fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/python_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def _check_type(self):
101101
pass
102102

103103

104-
def recursive_map(f, x):
104+
def _recursive_list_map(f, x):
105105
if isinstance(x, list):
106-
return list(recursive_map(f, xi) for xi in x)
106+
return list(_recursive_list_map(f, xi) for xi in x)
107107
else:
108108
return f(x)
109109

@@ -114,7 +114,7 @@ class ApproxNumpy(ApproxBase):
114114
"""
115115

116116
def __repr__(self):
117-
list_scalars = recursive_map(self._approx_scalar, self.expected.tolist())
117+
list_scalars = _recursive_list_map(self._approx_scalar, self.expected.tolist())
118118
return "approx({!r})".format(list_scalars)
119119

120120
if sys.version_info[0] == 2:

0 commit comments

Comments
 (0)