From 6736d8c53ab80178195da8b5fe61e174cc5ea26e Mon Sep 17 00:00:00 2001 From: Anirudh Subramanian Date: Tue, 14 Apr 2020 17:15:21 +0000 Subject: MAINT: Make if else clause more readable --- numpy/_pytesttester.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'numpy/_pytesttester.py') diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py index 9e3c95740..ca86aeb22 100644 --- a/numpy/_pytesttester.py +++ b/numpy/_pytesttester.py @@ -171,8 +171,11 @@ class PytestTester: if label == "fast": # not importing at the top level to avoid circular import of module from numpy.testing import IS_PYPY - pytest_args += ["-m", "not slow and not slow_pypy"] \ - if IS_PYPY else ["-m", "not slow"] + if IS_PYPY: + pytest_args += ["-m", "not slow and not slow_pypy"] + else: + pytest_args += ["-m", "not slow"] + elif label != "full": pytest_args += ["-m", label] -- cgit v1.2.1