88from mock import patch
99from setuptools .dist import Distribution , _Distribution
1010from setuptools .config import ConfigHandler , read_configuration
11- from setuptools .extern .six .moves . configparser import InterpolationMissingOptionError
11+ from setuptools .extern .six .moves import configparser
1212from setuptools .tests import is_ascii
1313from . import py2_only , py3_only
1414from .textwrap import DALS
@@ -29,7 +29,9 @@ def make_package_dir(name, base_dir, ns=False):
2929 return dir_package , init_file
3030
3131
32- def fake_env (tmpdir , setup_cfg , setup_py = None , encoding = 'ascii' , package_path = 'fake_package' ):
32+ def fake_env (
33+ tmpdir , setup_cfg , setup_py = None ,
34+ encoding = 'ascii' , package_path = 'fake_package' ):
3335
3436 if setup_py is None :
3537 setup_py = (
@@ -440,11 +442,12 @@ def test_interpolation(self, tmpdir):
440442 '[metadata]\n '
441443 'description = %(message)s\n '
442444 )
443- with pytest .raises (InterpolationMissingOptionError ):
445+ with pytest .raises (configparser . InterpolationMissingOptionError ):
444446 with get_dist (tmpdir ):
445447 pass
446448
447- skip_if_not_ascii = pytest .mark .skipif (not is_ascii , reason = 'Test not supported with this locale' )
449+ skip_if_not_ascii = pytest .mark .skipif (
450+ not is_ascii , reason = 'Test not supported with this locale' )
448451
449452 @skip_if_not_ascii
450453 def test_non_ascii_1 (self , tmpdir ):
0 commit comments