aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2017-10-25 17:50:22 +0200
committerBenoit Pierre <benoit.pierre@gmail.com>2017-10-25 17:50:22 +0200
commit3686dedb4bfbd0e6630c10119c8fe7af9369248e (patch)
treee7cc32a997bfce674567a53ddfda1509e15ee813 /setuptools/tests
parent403bfce4ab920823cc4ba0b5ca5ac0d1b213513d (diff)
downloadexternal_python_setuptools-3686dedb4bfbd0e6630c10119c8fe7af9369248e.tar.gz
external_python_setuptools-3686dedb4bfbd0e6630c10119c8fe7af9369248e.tar.bz2
external_python_setuptools-3686dedb4bfbd0e6630c10119c8fe7af9369248e.zip
add test to ensure `setup.cfg` interpolation behavior remain unchanged
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index cdfa5af4..2494a0bc 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -3,6 +3,7 @@ import pytest
from distutils.errors import DistutilsOptionError, DistutilsFileError
from setuptools.dist import Distribution
from setuptools.config import ConfigHandler, read_configuration
+from setuptools.extern.six.moves.configparser import InterpolationMissingOptionError
class ErrConfigHandler(ConfigHandler):
@@ -306,6 +307,15 @@ class TestMetadata:
with get_dist(tmpdir) as dist:
assert set(dist.metadata.classifiers) == expected
+ def test_interpolation(self, tmpdir):
+ fake_env(
+ tmpdir,
+ '[metadata]\n'
+ 'description = %(message)s\n'
+ )
+ with pytest.raises(InterpolationMissingOptionError):
+ with get_dist(tmpdir):
+ pass
class TestOptions: