diff options
| author | robinjhuang <robin.j.huang@gmail.com> | 2018-10-27 18:46:55 -0400 |
|---|---|---|
| committer | Paul Ganssle <paul@ganssle.io> | 2018-10-28 17:45:42 -0400 |
| commit | 3a9dc2b03ef313ee7729606fb56ae9b41066dfd1 (patch) | |
| tree | 661aa631695a78bb6011888cf49edf0b60b7dbd4 /setuptools/tests/test_egg_info.py | |
| parent | 9d63059f112c80d0419bac71596c79cd4660398d (diff) | |
| download | python-setuptools-git-3a9dc2b03ef313ee7729606fb56ae9b41066dfd1.tar.gz | |
Add unit tests for setuptools deprecation warnings
These are tests to ensure that the specified deprecation warnings are
raised when the functions are called.
Co-authored-by: Junhan Huang <robin.j.huang@gmail.com>
Co-authored-by: Marton Pono <marci93@gmail.com>
Diffstat (limited to 'setuptools/tests/test_egg_info.py')
| -rw-r--r-- | setuptools/tests/test_egg_info.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py index 59ffb16d..46fb884f 100644 --- a/setuptools/tests/test_egg_info.py +++ b/setuptools/tests/test_egg_info.py @@ -7,7 +7,7 @@ import re import stat import time -from setuptools.command.egg_info import egg_info, manifest_maker +from setuptools.command.egg_info import egg_info, manifest_maker, EggInfoDeprecationWarning, get_pkg_info_revision from setuptools.dist import Distribution from setuptools.extern.six.moves import map @@ -603,3 +603,6 @@ class TestEggInfo: with open(os.path.join(egg_info_dir, 'PKG-INFO')) as pkginfo_file: pkg_info_lines = pkginfo_file.read().split('\n') assert 'Version: 0.0.0.dev0' in pkg_info_lines + + def test_get_pkg_info_revision_deprecated(self): + pytest.warns(EggInfoDeprecationWarning, get_pkg_info_revision)
\ No newline at end of file |
