diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-01 11:03:18 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-12-01 11:03:18 -0500 |
| commit | 541182abce9d84991dda9ca6731e7ea8bc9450db (patch) | |
| tree | d60f7ca48070efffd8081244c8bdacf12fd485ac /setuptools/tests | |
| parent | b47fe15b9039a165589353a1a43f6dfe3bbe3a8e (diff) | |
| parent | ed5f934e0a49253d645b66dad65fd5b616133d9a (diff) | |
| download | external_python_setuptools-541182abce9d84991dda9ca6731e7ea8bc9450db.tar.gz external_python_setuptools-541182abce9d84991dda9ca6731e7ea8bc9450db.tar.bz2 external_python_setuptools-541182abce9d84991dda9ca6731e7ea8bc9450db.zip | |
Merge branch 'suppress-warning' of https://github.com/abstrus/setuptools into abstrus-suppress-warning
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_egg_info.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py index 12c10497..dc41bc1f 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 @@ -237,6 +237,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_suppresion(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'], |
