summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-11-18 08:46:56 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-11-18 08:46:56 (GMT)
commitacccafcf70dda54fd102c9dbf7c42ae6af7d6b0b (patch)
tree60e9b1a06fa85f6f93dd01ffea70bdac8ac68738 /Lib
parent90ed611f6d60caeb59b1d9518f9f76a19436c8a5 (diff)
downloadcpython-acccafcf70dda54fd102c9dbf7c42ae6af7d6b0b.zip
cpython-acccafcf70dda54fd102c9dbf7c42ae6af7d6b0b.tar.gz
cpython-acccafcf70dda54fd102c9dbf7c42ae6af7d6b0b.tar.bz2
#7293: distutils.test_msvc9compiler now uses a key that exists on any fresh windows install
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_msvc9compiler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_msvc9compiler.py b/Lib/distutils/tests/test_msvc9compiler.py
index 21242a8..69a393c 100644
--- a/Lib/distutils/tests/test_msvc9compiler.py
+++ b/Lib/distutils/tests/test_msvc9compiler.py
@@ -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)