diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-22 17:39:42 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-22 17:39:42 -0400 |
| commit | d7cb8f24e3ba0a39adf1a94d29caf9d26184840b (patch) | |
| tree | a0e512b9a1139d152da2abbb2d9fc8dd4ce6d520 /setuptools/tests/test_find_packages.py | |
| parent | 5143389a680ebc281e34f0aa9c52ced3c79824c9 (diff) | |
| download | python-setuptools-git-d7cb8f24e3ba0a39adf1a94d29caf9d26184840b.tar.gz | |
Add test for exclude
Diffstat (limited to 'setuptools/tests/test_find_packages.py')
| -rw-r--r-- | setuptools/tests/test_find_packages.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/tests/test_find_packages.py b/setuptools/tests/test_find_packages.py index b382c104..d8b6f47a 100644 --- a/setuptools/tests/test_find_packages.py +++ b/setuptools/tests/test_find_packages.py @@ -65,6 +65,11 @@ class TestFindPackages(unittest.TestCase): packages = find_packages(self.dist_dir) self.assertEqual(packages, ['pkg', 'pkg.subpkg']) + def test_exclude(self): + self._touch('__init__.py', self.pkg_dir) + packages = find_packages(self.dist_dir, exclude=('pkg.*',)) + assert packages == ['pkg'] + def test_include_excludes_other(self): """ If include is specified, other packages should be excluded. |
