summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-01-07 13:37:37 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-01-07 13:37:37 -0500
commita0d35d47761a8bd7394cb9f2738169b07be3a005 (patch)
tree375334a5e61eb137b5411f92942b510f6024cea3 /setuptools/tests/test_egg_info.py
parentbbf6ac250a05fd51aa2a44ed3196837491bc9d60 (diff)
parent3c182f9f1eea89040fbfc88d1ccbed31ece6a00b (diff)
downloadpython-setuptools-git-issue-97.tar.gz
Merge branch 'master' into issue-97issue-97
Diffstat (limited to 'setuptools/tests/test_egg_info.py')
-rw-r--r--setuptools/tests/test_egg_info.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 12c10497..a32b981d 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -4,7 +4,7 @@ import re
import stat
import sys
-from setuptools.command.egg_info import egg_info
+from setuptools.command.egg_info import egg_info, manifest_maker
from setuptools.dist import Distribution
from setuptools.extern.six.moves import map
@@ -88,9 +88,8 @@ class TestEggInfo(object):
assert '[egg_info]' in content
assert 'tag_build =' in content
assert 'tag_date = 0' in content
- assert 'tag_svn_revision = 0' in content
- expected_order = 'tag_build', 'tag_date', 'tag_svn_revision'
+ expected_order = 'tag_build', 'tag_date',
self._validate_content_order(content, expected_order)
@@ -117,7 +116,6 @@ class TestEggInfo(object):
[egg_info]
tag_build =
tag_date = 0
- tag_svn_revision = 0
"""),
})
dist = Distribution()
@@ -131,9 +129,8 @@ class TestEggInfo(object):
assert '[egg_info]' in content
assert 'tag_build =' in content
assert 'tag_date = 0' in content
- assert 'tag_svn_revision = 0' in content
- expected_order = 'tag_build', 'tag_date', 'tag_svn_revision'
+ expected_order = 'tag_build', 'tag_date',
self._validate_content_order(content, expected_order)
@@ -237,6 +234,15 @@ class TestEggInfo(object):
pkginfo = os.path.join(egg_info_dir, 'PKG-INFO')
assert 'Requires-Python: >=1.2.3' in open(pkginfo).read().split('\n')
+ def test_manifest_maker_warning_suppression(self):
+ fixtures = [
+ "standard file not found: should have one of foo.py, bar.py",
+ "standard file 'setup.py' not found"
+ ]
+
+ for msg in fixtures:
+ assert manifest_maker._should_suppress_warning(msg)
+
def _run_install_command(self, tmpdir_cwd, env, cmd=None, output=None):
environ = os.environ.copy().update(
HOME=env.paths['home'],