summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_sdist.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-02-17 23:10:18 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-02-17 23:10:18 (GMT)
commit14d34a0e43ce1b4dba1da50376011cd7a18dba49 (patch)
tree7bb98ca96e1c71c1540ecbe104530393723d9a4d /Lib/distutils/tests/test_sdist.py
parentacd82b99c87d85511e5967e8836b36d950f965e5 (diff)
downloadcpython-14d34a0e43ce1b4dba1da50376011cd7a18dba49.zip
cpython-14d34a0e43ce1b4dba1da50376011cd7a18dba49.tar.gz
cpython-14d34a0e43ce1b4dba1da50376011cd7a18dba49.tar.bz2
Merged revisions 69724 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69724 | tarek.ziade | 2009-02-18 00:06:51 +0100 (Wed, 18 Feb 2009) | 1 line fixed the data_files inclusion behavior ........
Diffstat (limited to 'Lib/distutils/tests/test_sdist.py')
-rw-r--r--Lib/distutils/tests/test_sdist.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py
index 82e5dc6..9c579b4 100644
--- a/Lib/distutils/tests/test_sdist.py
+++ b/Lib/distutils/tests/test_sdist.py
@@ -23,6 +23,7 @@ setup(name='fake')
MANIFEST = """\
README
+inroot.txt
setup.py
data%(sep)sdata.dt
scripts%(sep)sscript.py
@@ -171,10 +172,13 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
self.write_file((data_dir, 'data.dt'), '#')
some_dir = join(self.tmp_dir, 'some')
os.mkdir(some_dir)
+ self.write_file((self.tmp_dir, 'inroot.txt'), '#')
self.write_file((some_dir, 'file.txt'), '#')
self.write_file((some_dir, 'other_file.txt'), '#')
- dist.data_files = [('data', ['data.dt', 'notexisting']),
+ dist.data_files = [('data', ['data/data.dt',
+ 'inroot.txt',
+ 'notexisting']),
'some/file.txt',
'some/other_file.txt']
@@ -202,7 +206,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
zip_file.close()
# making sure everything was added
- self.assertEquals(len(content), 10)
+ self.assertEquals(len(content), 11)
# checking the MANIFEST
manifest = open(join(self.tmp_dir, 'MANIFEST')).read()