aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2016-08-05 07:45:09 -0400
committerDaniel Holth <dholth@fastmail.fm>2016-08-05 07:45:09 -0400
commitdab253cb72eb7c098393f985e32585e079607f66 (patch)
tree676d334576f5b48ebc34c6c18d41bd0c7cbb5d42
parenta2605b297c147a1ad54078181d32fe369fa4f37d (diff)
downloadexternal_python_setuptools-dab253cb72eb7c098393f985e32585e079607f66.tar.gz
external_python_setuptools-dab253cb72eb7c098393f985e32585e079607f66.tar.bz2
external_python_setuptools-dab253cb72eb7c098393f985e32585e079607f66.zip
call finalize_options in test
-rw-r--r--setuptools/tests/test_build_ext.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/setuptools/tests/test_build_ext.py b/setuptools/tests/test_build_ext.py
index e0f2e73b..c71aadca 100644
--- a/setuptools/tests/test_build_ext.py
+++ b/setuptools/tests/test_build_ext.py
@@ -2,7 +2,7 @@ import sys
import distutils.command.build_ext as orig
from distutils.sysconfig import get_config_var
-from setuptools.command.build_ext import build_ext
+from setuptools.command.build_ext import build_ext, get_abi3_suffix
from setuptools.dist import Distribution
from setuptools.extension import Extension
@@ -26,8 +26,13 @@ class TestBuildExt:
Filename needs to be loadable by several versions
of Python 3 if 'is_abi3' is truthy on Extension()
"""
- dist = Distribution(dict(ext_modules=[Extension('spam.eggs', [], is_abi3=True)]))
+ print(get_abi3_suffix())
+
+ extension = Extension('spam.eggs', ['eggs.c'], is_abi3=True)
+ dist = Distribution(dict(ext_modules=[extension]))
cmd = build_ext(dist)
+ cmd.finalize_options()
+ assert 'spam.eggs' in cmd.ext_map
res = cmd.get_ext_filename('spam.eggs')
if sys.version_info[0] == 2: