From d2de99246dc54f94b89a21d123f1f5cc4f8e7acc Mon Sep 17 00:00:00 2001 From: Gregory Starck Date: Mon, 28 Feb 2022 11:58:41 -0500 Subject: [PATCH] Better comments again --- setuptools/tests/test_easy_install.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index da7cd9e234..e27465110f 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -337,17 +337,20 @@ def test_many_pth_distributions_merge_together(self, tmpdir): pth1.paths.append(new_src_path_str) pth1.save() assert pth1.paths, \ - "first, the new_path added must still be present/valid in pth1 after save" + "first, the new_src_path added must still be present/valid in pth1 after save" # now, - assert not pth2.paths, "right before we save should still be empty" + assert new_src_path_str not in pth2.paths, \ + "right before we save the entry should still not be present" pth2.save() - assert pth2.paths, \ - "the new_path entry should have been added by pth2 with its save() call" + assert new_src_path_str in pth2.paths, \ + "the new_src_path entry should have been added by pth2 with its save() call now" assert pth2.paths[-1] == new_src_path, \ - "and it should match exactly on the last entry" + "and it should match exactly on the last entry actually " \ + "given we append to it in save()" # finally, assert PthDistributions(pth_path).paths == pth2.paths, \ - "we should have the exact same list at the end" + "and we should have the exact same list at the end " \ + "with a fresh PthDistributions instance" @pytest.fixture