Skip to content

Commit 90bfd66

Browse files
🎨 Auto format
1 parent c55e3ad commit 90bfd66

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

tests/test_tutorial/test_subcommands/test_tutorial001.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ def test_scripts(mod):
8787
from docs_src.subcommands.tutorial001_py310 import items, users
8888

8989
env = os.environ.copy()
90-
env["PYTHONPATH"] = ":".join(list(tutorial001_py310.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
90+
env["PYTHONPATH"] = ":".join(
91+
list(tutorial001_py310.__path__) + [env["PYTHONPATH"]]
92+
if "PYTHONPATH" in env
93+
else []
94+
)
9195

9296
for module in [mod, items, users]:
9397
result = subprocess.run(

tests/test_tutorial/test_subcommands/test_tutorial003.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ def test_scripts(mod):
166166
)
167167

168168
env = os.environ.copy()
169-
env["PYTHONPATH"] = ":".join(list(tutorial003_py310.__path__) + [env["PYTHONPATH"]] if "PYTHONPATH" in env else [])
169+
env["PYTHONPATH"] = ":".join(
170+
list(tutorial003_py310.__path__) + [env["PYTHONPATH"]]
171+
if "PYTHONPATH" in env
172+
else []
173+
)
170174

171175
for module in [mod, items, lands, reigns, towns, users]:
172176
result = subprocess.run(

0 commit comments

Comments
 (0)