]> granicus.if.org Git - python/commitdiff
Merged revisions 63670 via svnmerge from
authorThomas Heller <theller@ctypes.org>
Mon, 26 May 2008 11:51:44 +0000 (11:51 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 26 May 2008 11:51:44 +0000 (11:51 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r63670 | thomas.heller | 2008-05-26 13:42:40 +0200 (Mo, 26 Mai 2008) | 4 lines

  On Windows, we must build a debug version iff running a debug build of
  Python
........

Lib/distutils/tests/test_build_ext.py

index 96c0a2395b0231b470c7fd88575e348d1340a48f..20c10745cb2f23bcae0a076d3247bea2a343495c 100644 (file)
@@ -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