diff options
| author | Tim Hatch <thatch@fb.com> | 2020-12-14 09:37:47 -0800 |
|---|---|---|
| committer | Tim Hatch <thatch@fb.com> | 2020-12-21 12:50:42 -0800 |
| commit | 44d45ae20a663f1cb75812657cee1244e3dddb58 (patch) | |
| tree | 2764f8c4c25fd1b39a793345db215ab5516a16bf /pkg_resources | |
| parent | ac2311014ab27409f1ca109101131fd7383cdc32 (diff) | |
| download | python-setuptools-git-44d45ae20a663f1cb75812657cee1244e3dddb58.tar.gz | |
Failing test for #2489
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/tests/data/my-test-package-zip/my-test-package.zip | bin | 0 -> 1809 bytes | |||
| -rw-r--r-- | pkg_resources/tests/test_find_distributions.py | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/pkg_resources/tests/data/my-test-package-zip/my-test-package.zip b/pkg_resources/tests/data/my-test-package-zip/my-test-package.zip Binary files differnew file mode 100644 index 00000000..81f9a017 --- /dev/null +++ b/pkg_resources/tests/data/my-test-package-zip/my-test-package.zip diff --git a/pkg_resources/tests/test_find_distributions.py b/pkg_resources/tests/test_find_distributions.py index f9594422..b01b4827 100644 --- a/pkg_resources/tests/test_find_distributions.py +++ b/pkg_resources/tests/test_find_distributions.py @@ -32,3 +32,12 @@ class TestFindDistributions: assert [dist.project_name for dist in dists] == ['my-test-package'] dists = pkg_resources.find_distributions(str(target_dir), only=True) assert not list(dists) + + def test_zipped_sdist_one_level_removed(self, target_dir): + (TESTS_DATA_DIR / 'my-test-package-zip').copy(target_dir) + dists = pkg_resources.find_distributions( + str(target_dir / "my-test-package.zip")) + assert [dist.project_name for dist in dists] == ['my-test-package'] + dists = pkg_resources.find_distributions( + str(target_dir / "my-test-package.zip"), only=True) + assert not list(dists) |
