From 71fdbea09031afbedb99092dea1b588aa8e4dbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 26 Jan 2022 13:48:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ACTUALLY=20fix=20the=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that was embarrassing... --- tests/util/test_pip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/test_pip.py b/tests/util/test_pip.py index 912012bba..9ddc5c7fe 100644 --- a/tests/util/test_pip.py +++ b/tests/util/test_pip.py @@ -163,7 +163,7 @@ class PipUtilTest(unittest.TestCase): def _get_lines(self, file): with io.open(os.path.join(self._test_data, file), "r", encoding="utf-8") as f: lines = list( - map(lambda x: x.rstrip, f.readlines()) + map(lambda x: x.rstrip(), f.readlines()) ) # not str.rstrip because in py2 it'll be unicode... return lines