@@ -63,18 +63,14 @@ def main():
6363 import foopkg.mod1
6464
6565 foopkg.mod1.main()
66- """ .format (
67- CODE_DIR
68- )
66+ """ .format (CODE_DIR )
6967 run2_contents = """
7068 import sys
7169 sys.path.insert(0, '{}')
7270 import foopkg.mod2
7371
7472 foopkg.mod2.main()
75- """ .format (
76- CODE_DIR
77- )
73+ """ .format (CODE_DIR )
7874 with pytest .helpers .temp_file (
7975 "run1.py" , contents = run1_contents , directory = tmp_path
8076 ), pytest .helpers .temp_file (
@@ -83,9 +79,7 @@ def main():
8379 "__init__.py" , contents = "" , directory = pkgpath
8480 ), pytest .helpers .temp_file (
8581 "mod1.py" , mod1_contents , directory = pkgpath
86- ), pytest .helpers .temp_file (
87- "mod2.py" , mod2_contents , directory = pkgpath
88- ):
82+ ), pytest .helpers .temp_file ("mod2.py" , mod2_contents , directory = pkgpath ):
8983 ret = shell .run (sys .executable , str (tmp_path / "run1.py" ), cwd = str (tmp_path ))
9084 log .warning (ret )
9185 assert ret .returncode == 0
@@ -139,4 +133,4 @@ def func(_arg, *, default="foo"):
139133 func2 = namespaced_function (func , globals ())
140134
141135 assert func (None ) == "foo"
142- assert func2 (None ) == "foo"
136+ assert func2 (None ) == "foo" # pylint: disable=not-callable
0 commit comments