diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-05 18:02:45 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-05 18:02:45 +0100 |
| commit | b496ff9bb11949a4739ba44c75f2f5504a094fdb (patch) | |
| tree | 0d974a390a3787721b54dfde9278c246c698bed4 /minishell_test/suite/suite.py | |
| parent | b164430fb1fa82c705077d46cdb685de5faf6a19 (diff) | |
| download | minishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.tar.gz minishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.tar.bz2 minishell_test-b496ff9bb11949a4739ba44c75f2f5504a094fdb.zip | |
Removing annoying flake8 plugins
Diffstat (limited to 'minishell_test/suite/suite.py')
| -rw-r--r-- | minishell_test/suite/suite.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/minishell_test/suite/suite.py b/minishell_test/suite/suite.py index df342a0..8fd39bf 100644 --- a/minishell_test/suite/suite.py +++ b/minishell_test/suite/suite.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:29 by charles #+# #+# # -# Updated: 2021/02/05 14:24:36 by charles ### ########.fr # +# Updated: 2021/02/05 18:01:33 by charles ### ########.fr # # # # ############################################################################ # @@ -44,9 +44,9 @@ class Suite: names.append(name) continue matches = [n for n in suite_names - if n.find("/") != -1 - and n[n.find("/") + 1:].startswith(name) - or n.startswith(name)] + if n.find("/") != -1 and + n[n.find("/") + 1:].startswith(name) or + n.startswith(name)] if len(matches) == 1: names.append(matches[0]) elif len(matches) != 0 and all(n.startswith(name) for n in matches): @@ -63,8 +63,8 @@ class Suite: sys.exit(1) cls.available = list(set( - [s for s in cls.available if s.name in names] - + [s for s in cls.available if any(g for g in s.groups if g in names)] + [s for s in cls.available if s.name in names] + + [s for s in cls.available if any(g for g in s.groups if g in names)] )) cls.available.sort(key=lambda s: s.name) for s in cls.available: |
