]> granicus.if.org Git - python/commitdiff
Merged revisions 76358 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 18 Nov 2009 09:32:34 +0000 (09:32 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 18 Nov 2009 09:32:34 +0000 (09:32 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76358 | tarek.ziade | 2009-11-18 09:46:56 +0100 (Wed, 18 Nov 2009) | 1 line

  #7293: distutils.test_msvc9compiler now uses a key that exists on any fresh windows install
........

Lib/distutils/tests/test_msvc9compiler.py
Misc/NEWS

index 73827988bb2d9fed0ecb3105011db5430ed6265d..7cf1a12ec7a02d1902df370b5cb45c2ab20a17a7 100644 (file)
@@ -44,17 +44,17 @@ class msvc9compilerTestCase(unittest.TestCase):
 
         # looking for values that should exist on all
         # windows registeries versions.
-        path = r'Software\Microsoft\Notepad'
-        v = Reg.get_value(path, "lfitalic")
-        self.assertTrue(v in (0, 1))
+        path = r'Control Panel\Desktop'
+        v = Reg.get_value(path, 'dragfullwindows')
+        self.assertTrue(v in ('0', '1'))
 
         import winreg
         HKCU = winreg.HKEY_CURRENT_USER
         keys = Reg.read_keys(HKCU, 'xxxx')
         self.assertEquals(keys, None)
 
-        keys = Reg.read_keys(HKCU, r'Software\Microsoft')
-        self.assertTrue('Notepad' in keys)
+        keys = Reg.read_keys(HKCU, r'Control Panel')
+        self.assertTrue('Desktop' in keys)
 
 def test_suite():
     return unittest.makeSuite(msvc9compilerTestCase)
index cc134d686b8ef3ed17ea9d17500162f70255b0ec..2e3dee3e093043c34ac2c8078c8fd55b20b58943 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -137,6 +137,9 @@ C-API
 Library
 -------
 
+- Issue #7293: distutils.test_msvc9compiler is fixed to work on any fresh
+  Windows box. Help provided by David Bolen.
+
 - Issue #2054: ftplib now provides an FTP_TLS class to do secure FTP using
   TLS or SSL.  Patch by Giampaolo Rodola'.