[pypy-svn] r79099 - in pypy/branch/fast-forward/pypy: module/_winreg/test rlib

afa at codespeak.net afa at codespeak.net
Mon Nov 15 14:15:16 CET 2010


Author: afa
Date: Mon Nov 15 14:15:14 2010
New Revision: 79099

Modified:
   pypy/branch/fast-forward/pypy/module/_winreg/test/test_winreg.py
   pypy/branch/fast-forward/pypy/rlib/rwinreg.py
Log:
Typo in constant: test and fix


Modified: pypy/branch/fast-forward/pypy/module/_winreg/test/test_winreg.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_winreg/test/test_winreg.py	(original)
+++ pypy/branch/fast-forward/pypy/module/_winreg/test/test_winreg.py	Mon Nov 15 14:15:14 2010
@@ -58,6 +58,12 @@
         except WindowsError:
             pass
 
+    def test_constants(self):
+        from _winreg import (
+            HKEY_LOCAL_MACHINE, HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG,
+            HKEY_CURRENT_USER, HKEY_DYN_DATA, HKEY_LOCAL_MACHINE,
+            HKEY_PERFORMANCE_DATA, HKEY_USERS)
+
     def test_simple_write(self):
         from _winreg import SetValue, QueryValue, REG_SZ
         value = "Some Default value"

Modified: pypy/branch/fast-forward/pypy/rlib/rwinreg.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rlib/rwinreg.py	(original)
+++ pypy/branch/fast-forward/pypy/rlib/rwinreg.py	Mon Nov 15 14:15:14 2010
@@ -26,7 +26,7 @@
 REG_FULL_RESOURCE_DESCRIPTOR REG_RESOURCE_REQUIREMENTS_LIST
 
 HKEY_LOCAL_MACHINE HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER
-HKEY_DYN_DATA HKEY_LOCAL_MACHINE HKEY_PERFORMANCE_DATATA HKEY_USERS
+HKEY_DYN_DATA HKEY_LOCAL_MACHINE HKEY_PERFORMANCE_DATA HKEY_USERS
 '''.split()
 for name in constant_names:
     setattr(CConfig, name, platform.DefinedConstantInteger(name))



More information about the Pypy-commit mailing list