summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-05-26 11:42:40 (GMT)
committerThomas Heller <theller@ctypes.org>2008-05-26 11:42:40 (GMT)
commitb4701e638c1030e575adf441aab01ad6319cc83d (patch)
tree1b45635960813e9a5db53df2200f60014bde5c04
parente2caef76466b694467984e71207d0076a3639263 (diff)
downloadcpython-b4701e638c1030e575adf441aab01ad6319cc83d.zip
cpython-b4701e638c1030e575adf441aab01ad6319cc83d.tar.gz
cpython-b4701e638c1030e575adf441aab01ad6319cc83d.tar.bz2
On Windows, we must build a debug version iff running a debug build of
Python
-rw-r--r--Lib/distutils/tests/test_build_ext.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index b5c2aa2..a658f1a 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -28,6 +28,10 @@ class BuildExtTestCase(unittest.TestCase):
dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]})
dist.package_dir = self.tmp_dir
cmd = build_ext(dist)
+ if os.name == "nt":
+ # On Windows, we must build a debug version iff running
+ # a debug build of Python
+ cmd.debug = sys.executable.endswith("_d.exe")
cmd.build_lib = self.tmp_dir
cmd.build_temp = self.tmp_dir