diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-05-23 01:51:09 +0200 |
---|---|---|
committer | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-05-23 01:51:09 +0200 |
commit | acf4807fd651cd94ee646f881733af796b0e30d3 (patch) | |
tree | a1200304b31221b49a75112785728626b94bd0c9 | |
parent | 4429ffbb700c1838ddf57c47c378bd3c617eb8c3 (diff) | |
download | python-setuptools-git-acf4807fd651cd94ee646f881733af796b0e30d3.tar.gz |
Fix flaky test
-rw-r--r-- | setuptools/tests/test_egg_info.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py index 1d98d259..ee07b5a1 100644 --- a/setuptools/tests/test_egg_info.py +++ b/setuptools/tests/test_egg_info.py @@ -875,11 +875,9 @@ class TestEggInfo: # Only 'NOTICE', LICENSE-ABC', and 'LICENSE-XYZ' should have been matched # Also assert that order from license_files is keeped - assert license_file_lines == [ - "License-File: NOTICE", - "License-File: LICENSE-ABC", - "License-File: LICENSE-XYZ", - ] + assert "License-File: NOTICE" == license_file_lines[0] + assert "License-File: LICENSE-ABC" in license_file_lines[1:] + assert "License-File: LICENSE-XYZ" in license_file_lines[1:] def test_metadata_version(self, tmpdir_cwd, env): """Make sure latest metadata version is used by default.""" |