diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-01 11:12:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-01 11:12:47 -0500 |
| commit | e846e067648f2f1c19b45ed0166c62dff8262f76 (patch) | |
| tree | b7c516a91bcea34173c4b004e96161684be91fef /setuptools/tests | |
| parent | 09f0ed4036de064e3807801668d5875a9a7e8b9d (diff) | |
| parent | 11b921f2e17586e394639e7ddbcaeae727ece4d0 (diff) | |
| download | external_python_setuptools-e846e067648f2f1c19b45ed0166c62dff8262f76.tar.gz external_python_setuptools-e846e067648f2f1c19b45ed0166c62dff8262f76.tar.bz2 external_python_setuptools-e846e067648f2f1c19b45ed0166c62dff8262f76.zip | |
Merge pull request #843 from tweksteen/pypi_tests
Remove _add_defaults_data_files override and add unittest
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_sdist.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index 609c7830..f34068dc 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -26,7 +26,8 @@ SETUP_ATTRS = { 'name': 'sdist_test', 'version': '0.0', 'packages': ['sdist_test'], - 'package_data': {'sdist_test': ['*.txt']} + 'package_data': {'sdist_test': ['*.txt']}, + 'data_files': [("data", [os.path.join("d", "e.dat")])], } SETUP_PY = """\ @@ -95,9 +96,12 @@ class TestSdistTest: # Set up the rest of the test package test_pkg = os.path.join(self.temp_dir, 'sdist_test') os.mkdir(test_pkg) + data_folder = os.path.join(self.temp_dir, "d") + os.mkdir(data_folder) # *.rst was not included in package_data, so c.rst should not be # automatically added to the manifest when not under version control - for fname in ['__init__.py', 'a.txt', 'b.txt', 'c.rst']: + for fname in ['__init__.py', 'a.txt', 'b.txt', 'c.rst', + os.path.join(data_folder, "e.dat")]: # Just touch the files; their contents are irrelevant open(os.path.join(test_pkg, fname), 'w').close() @@ -126,6 +130,7 @@ class TestSdistTest: assert os.path.join('sdist_test', 'a.txt') in manifest assert os.path.join('sdist_test', 'b.txt') in manifest assert os.path.join('sdist_test', 'c.rst') not in manifest + assert os.path.join('d', 'e.dat') in manifest def test_defaults_case_sensitivity(self): """ |
