@@ -327,27 +327,27 @@ def test_many_pth_distributions_merge_together(self, tmpdir):
327
327
pth_path = str (pth_subdir .join ("file1.pth" ))
328
328
pth1 = PthDistributions (pth_path )
329
329
pth2 = PthDistributions (pth_path )
330
- assert (
331
- pth1 . paths == pth2 . paths == []
332
- ), "unless there would be some default added at some point"
330
+ assert pth1 . paths == pth2 . paths == [], (
331
+ "unless there would be some default added at some point"
332
+ )
333
333
# and so putting the src_subdir in folder distinct than the pth one,
334
334
# so to keep it absolute by PthDistributions
335
335
new_src_path = tmpdir .join ("src_subdir" )
336
336
new_src_path .mkdir () # must exist to be accounted
337
337
new_src_path_str = str (new_src_path )
338
338
pth1 .paths .append (new_src_path_str )
339
339
pth1 .save ()
340
- assert (
341
- pth1 . paths
342
- ), "the new_src_path added must still be present/valid in pth1 after save"
340
+ assert pth1 . paths , (
341
+ "the new_src_path added must still be present/valid in pth1 after save"
342
+ )
343
343
# now,
344
- assert (
345
- new_src_path_str not in pth2 . paths
346
- ), "right before we save the entry should still not be present"
344
+ assert new_src_path_str not in pth2 . paths , (
345
+ "right before we save the entry should still not be present"
346
+ )
347
347
pth2 .save ()
348
- assert (
349
- new_src_path_str in pth2 . paths
350
- ), "the new_src_path entry should have been added by pth2 with its save() call"
348
+ assert new_src_path_str in pth2 . paths , (
349
+ "the new_src_path entry should have been added by pth2 with its save() call"
350
+ )
351
351
assert pth2 .paths [- 1 ] == new_src_path , (
352
352
"and it should match exactly on the last entry actually "
353
353
"given we append to it in save()"
@@ -719,8 +719,7 @@ def test_setup_requires_override_nspkg(self, use_setup_cfg):
719
719
run_setup (test_setup_py , ['--name' ])
720
720
except pkg_resources .VersionConflict :
721
721
self .fail (
722
- 'Installing setup.py requirements '
723
- 'caused a VersionConflict'
722
+ 'Installing setup.py requirements caused a VersionConflict'
724
723
)
725
724
726
725
assert 'FAIL' not in stdout .getvalue ()
0 commit comments