Skip to content

Commit 3601d65

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 5d56840 commit 3601d65

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

setuptools/tests/test_easy_install.py

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -338,39 +338,47 @@ def test_add_from_site_is_ignored(self):
338338
assert not pth.dirty
339339

340340
def test_many_pth_distributions_merge_together(self, tmpdir):
341-
"""Make sure that if the pth file is modified under the hood then PthDistribution
342-
will refresh its content before saving, and merging contents when necessary.
341+
"""
342+
If the pth file is modified under the hood, then PthDistribution
343+
will refresh its content before saving, merging contents when
344+
necessary.
343345
"""
344346
# putting the pth file in a dedicated sub-folder,
345347
pth_subdir = tmpdir.join("pth_subdir")
346348
pth_subdir.mkdir()
347349
pth_path = str(pth_subdir.join("file1.pth"))
348350
pth1 = PthDistributions(pth_path)
349351
pth2 = PthDistributions(pth_path)
350-
assert pth1.paths == pth2.paths == [], \
351-
"unless there would be some default added at some point"
352+
assert (
353+
pth1.paths == pth2.paths == []
354+
), "unless there would be some default added at some point"
352355
# and so putting the src_subdir in folder distinct than the pth one,
353356
# so to keep it absolute by PthDistributions
354357
new_src_path = tmpdir.join("src_subdir")
355358
new_src_path.mkdir() # must exist to be accounted
356359
new_src_path_str = str(new_src_path)
357360
pth1.paths.append(new_src_path_str)
358361
pth1.save()
359-
assert pth1.paths, \
360-
"first, the new_src_path added must still be present/valid in pth1 after save"
362+
assert (
363+
pth1.paths
364+
), "the new_src_path added must still be present/valid in pth1 after save"
361365
# now,
362-
assert new_src_path_str not in pth2.paths, \
363-
"right before we save the entry should still not be present"
366+
assert (
367+
new_src_path_str not in pth2.paths
368+
), "right before we save the entry should still not be present"
364369
pth2.save()
365-
assert new_src_path_str in pth2.paths, \
366-
"the new_src_path entry should have been added by pth2 with its save() call now"
367-
assert pth2.paths[-1] == new_src_path, \
368-
"and it should match exactly on the last entry actually " \
370+
assert (
371+
new_src_path_str in pth2.paths
372+
), "the new_src_path entry should have been added by pth2 with its save() call"
373+
assert pth2.paths[-1] == new_src_path, (
374+
"and it should match exactly on the last entry actually "
369375
"given we append to it in save()"
376+
)
370377
# finally,
371-
assert PthDistributions(pth_path).paths == pth2.paths, \
372-
"and we should have the exact same list at the end " \
378+
assert PthDistributions(pth_path).paths == pth2.paths, (
379+
"and we should have the exact same list at the end "
373380
"with a fresh PthDistributions instance"
381+
)
374382

375383

376384
@pytest.fixture
@@ -886,9 +894,15 @@ def test_setup_requires_with_python_requires(self, monkeypatch, tmpdir):
886894
<html><head><title>Links for dep</title></head>
887895
<body>
888896
<h1>Links for dep</h1>
897+
<<<<<<< Updated upstream
889898
<a href="{dep_1_0_url}"\
890899
data-requires-python="{dep_1_0_python_requires}">{dep_1_0_sdist}</a><br/>
891900
<a href="{dep_2_0_url}"\
901+
=======
902+
<a href="{dep_1_0_url}" \
903+
data-requires-python="{dep_1_0_python_requires}">{dep_1_0_sdist}</a><br/>
904+
<a href="{dep_2_0_url}" \
905+
>>>>>>> Stashed changes
892906
data-requires-python="{dep_2_0_python_requires}">{dep_2_0_sdist}</a><br/>
893907
</body>
894908
</html>

0 commit comments

Comments
 (0)