summaryrefslogtreecommitdiff
path: root/distutils2/tests/test_command_sdist.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils2/tests/test_command_sdist.py')
-rw-r--r--distutils2/tests/test_command_sdist.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/distutils2/tests/test_command_sdist.py b/distutils2/tests/test_command_sdist.py
index ae37cf5..29a3ec3 100644
--- a/distutils2/tests/test_command_sdist.py
+++ b/distutils2/tests/test_command_sdist.py
@@ -56,6 +56,10 @@ somecode%(sep)sdoc.dat
somecode%(sep)sdoc.txt
"""
+def builder(filelist):
+ filelist.append('bah')
+
+
class SDistTestCase(support.TempdirManager, support.LoggingCatcher,
support.EnvironGuard, unittest.TestCase):
@@ -428,6 +432,13 @@ class SDistTestCase(support.TempdirManager, support.LoggingCatcher,
self.assertIn('yeah', content)
+ def test_manifest_builder(self):
+ dist, cmd = self.get_cmd()
+ cmd.manifest_builders = 'distutils2.tests.test_command_sdist.builder'
+ cmd.ensure_finalized()
+ cmd.run()
+ self.assertIn('bah', cmd.filelist.files)
+
def test_suite():
return unittest.makeSuite(SDistTestCase)