summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-27 13:55:58 -0500
committerGitHub <noreply@github.com>2016-09-27 13:55:58 -0500
commit410a6e053b5d31de06e88e3073f44d3e0b6b26af (patch)
treefada0c7019a2d60fb0fd6fa5a9f16404b152f768 /setuptools
parentf2d480b8131687eb8ff821f7d52e7cc1f13f6bc4 (diff)
parent992adf2f5684e6660335d616149e050b3eaaed17 (diff)
downloadpython-setuptools-git-410a6e053b5d31de06e88e3073f44d3e0b6b26af.tar.gz
Merge pull request #798 from timheap/faster-package-finder
Note find_packages backwards incompatible change
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_find_packages.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/tests/test_find_packages.py b/setuptools/tests/test_find_packages.py
index df51b04f..9d31ccd7 100644
--- a/setuptools/tests/test_find_packages.py
+++ b/setuptools/tests/test_find_packages.py
@@ -98,6 +98,15 @@ class TestFindPackages:
packages = find_packages(self.dist_dir, exclude=('pkg.*',))
assert packages == ['pkg']
+ def test_exclude_recursive(self):
+ """
+ Excluding a parent package should exclude all 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 == []
+
def test_include_excludes_other(self):
"""
If include is specified, other packages should be excluded.