From a5c0fb7f6b8d6213111c70d07ace773e6e794614 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 1 Aug 2018 15:17:58 -0300 Subject: [PATCH] Rename recursive_map -> _recursive_list_map as requested in review --- src/_pytest/python_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index 25b76742c..8f15ea7e7 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -101,9 +101,9 @@ class ApproxBase(object): pass -def recursive_map(f, x): +def _recursive_list_map(f, x): if isinstance(x, list): - return list(recursive_map(f, xi) for xi in x) + return list(_recursive_list_map(f, xi) for xi in x) else: return f(x) @@ -114,7 +114,7 @@ class ApproxNumpy(ApproxBase): """ def __repr__(self): - list_scalars = recursive_map(self._approx_scalar, self.expected.tolist()) + list_scalars = _recursive_list_map(self._approx_scalar, self.expected.tolist()) return "approx({!r})".format(list_scalars) if sys.version_info[0] == 2: