diff options
author | Tim Heap <tim@timheap.me> | 2016-09-22 13:44:01 +1000 |
---|---|---|
committer | Tim Heap <tim@timheap.me> | 2016-10-05 04:26:04 +0200 |
commit | 2ecc8a4428dbc75bdfd96681283c7235b120f4bd (patch) | |
tree | 963b828fdbe11e50538395809f939064aa9d5d96 /setuptools/tests/test_find_packages.py | |
parent | cf469bf239cc6c0d4ebb766c5e2b6c6098e2b28b (diff) | |
download | external_python_setuptools-2ecc8a4428dbc75bdfd96681283c7235b120f4bd.tar.gz external_python_setuptools-2ecc8a4428dbc75bdfd96681283c7235b120f4bd.tar.bz2 external_python_setuptools-2ecc8a4428dbc75bdfd96681283c7235b120f4bd.zip |
Find nested packages with excluded parent
`find_packages(exclude=['pkg'])` should still find and include the
`pkg.subpkg` package.
Fixes #808
Diffstat (limited to 'setuptools/tests/test_find_packages.py')
-rw-r--r-- | setuptools/tests/test_find_packages.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_find_packages.py b/setuptools/tests/test_find_packages.py index 9d31ccd7..6dc1b3ac 100644 --- a/setuptools/tests/test_find_packages.py +++ b/setuptools/tests/test_find_packages.py @@ -100,12 +100,12 @@ class TestFindPackages: def test_exclude_recursive(self): """ - Excluding a parent package should exclude all child packages as well. + Excluding a parent package should not exclude child packages as well. """ self._touch('__init__.py', self.pkg_dir) self._touch('__init__.py', self.sub_pkg_dir) packages = find_packages(self.dist_dir, exclude=('pkg',)) - assert packages == [] + assert packages == ['pkg.subpkg'] def test_include_excludes_other(self): """ |