From 72e6482994974741ddc2058807cf4d3f7b771ced Mon Sep 17 00:00:00 2001 From: turturica Date: Thu, 23 Aug 2018 22:58:36 -0700 Subject: [PATCH] Make linting happy. --- src/_pytest/python.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 1ecd9310e..d694ba676 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -598,13 +598,16 @@ class Package(Module): continue for pkg_prefix in pkg_prefixes: - if pkg_prefix in path.parts() and pkg_prefix.join('__init__.py') != path: + if ( + pkg_prefix in path.parts() + and pkg_prefix.join("__init__.py") != path + ): skip = True if skip: continue - if path.isdir() and path.join('__init__.py').check(file=1): + if path.isdir() and path.join("__init__.py").check(file=1): pkg_prefixes.add(path) for x in self._collectfile(path):