@@ -327,27 +327,27 @@ def test_many_pth_distributions_merge_together(self, tmpdir):
327327 pth_path = str (pth_subdir .join ("file1.pth" ))
328328 pth1 = PthDistributions (pth_path )
329329 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+ )
333333 # and so putting the src_subdir in folder distinct than the pth one,
334334 # so to keep it absolute by PthDistributions
335335 new_src_path = tmpdir .join ("src_subdir" )
336336 new_src_path .mkdir () # must exist to be accounted
337337 new_src_path_str = str (new_src_path )
338338 pth1 .paths .append (new_src_path_str )
339339 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+ )
343343 # 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+ )
347347 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+ )
351351 assert pth2 .paths [- 1 ] == new_src_path , (
352352 "and it should match exactly on the last entry actually "
353353 "given we append to it in save()"
@@ -719,8 +719,7 @@ def test_setup_requires_override_nspkg(self, use_setup_cfg):
719719 run_setup (test_setup_py , ['--name' ])
720720 except pkg_resources .VersionConflict :
721721 self .fail (
722- 'Installing setup.py requirements '
723- 'caused a VersionConflict'
722+ 'Installing setup.py requirements caused a VersionConflict'
724723 )
725724
726725 assert 'FAIL' not in stdout .getvalue ()
0 commit comments