]> granicus.if.org Git - python/commitdiff
#7293: distutils.test_msvc9compiler now uses a key that exists on any fresh windows...
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 18 Nov 2009 08:46:56 +0000 (08:46 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 18 Nov 2009 08:46:56 +0000 (08:46 +0000)
Lib/distutils/tests/test_msvc9compiler.py
Misc/NEWS

index 21242a8eb91a1a9f3efd55dc5076ac1e438226ec..69a393caf8c259218e7025e8f6fe9421bb079239 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, u"lfitalic")
-        self.assertTrue(v in (0, 1))
+        path = r'Control Panel\Desktop'
+        v = Reg.get_value(path, u'dragfullwindows')
+        self.assertTrue(v in (u'0', u'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 d3668183da8a94246f92fc2b4f37dd0ca674a11d..0e76ccb60dea7b1dea517b7dc48a37aa3b04beb1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -431,6 +431,9 @@ Core and Builtins
 Library
 -------
 
+- Issue #7293: distutils.test_msvc9compiler is fixed to work on any fresh
+  Windows box. Help provided by David Bolen.
+
 - Issue #7328: pydoc no longer corrupts sys.path when run with the '-m' switch
 
 - Issue #2054: ftplib now provides an FTP_TLS class to do secure FTP using