We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setup.cfg
1 parent 403bfce commit 3686dedCopy full SHA for 3686ded
setuptools/tests/test_config.py
@@ -3,6 +3,7 @@
3
from distutils.errors import DistutilsOptionError, DistutilsFileError
4
from setuptools.dist import Distribution
5
from setuptools.config import ConfigHandler, read_configuration
6
+from setuptools.extern.six.moves.configparser import InterpolationMissingOptionError
7
8
9
class ErrConfigHandler(ConfigHandler):
@@ -306,6 +307,15 @@ def test_classifiers(self, tmpdir):
306
307
with get_dist(tmpdir) as dist:
308
assert set(dist.metadata.classifiers) == expected
309
310
+ def test_interpolation(self, tmpdir):
311
+ fake_env(
312
+ tmpdir,
313
+ '[metadata]\n'
314
+ 'description = %(message)s\n'
315
+ )
316
+ with pytest.raises(InterpolationMissingOptionError):
317
+ with get_dist(tmpdir):
318
+ pass
319
320
class TestOptions:
321
0 commit comments