[Python-checkins] r42475 - python/trunk/PC/_winreg.c

Tim Peters tim.peters at gmail.com
Sun Feb 19 04:52:41 CET 2006


[georg.brandl]
> New Revision: 42475
>
> Modified:
>    python/trunk/PC/_winreg.c
> Log:
> Patch #977553: speed up RegEnumKey call

Do you have a Windows box?  test_winreg fails on my WinXP box now:

C:\Code\python\PCbuild>python ../lib/test/test_winreg.py
Traceback (most recent call last):
  File "../lib/test/test_winreg.py", line 135, in <module>
    TestAll(HKEY_CURRENT_USER)
  File "../lib/test/test_winreg.py", line 131, in TestAll
    ReadTestData(root_key)
  File "../lib/test/test_winreg.py", line 91, in ReadTestData
    verify(read_val == "sub_key", "Read subkey value wrong")
  File "C:\Code\python\lib\test\test_support.py", line 204, in verify
    raise TestFailed(reason)
test.test_support.TestFailed: Read subkey value wrong

read_val contains "sub_key\0" at that point (has a trailing NUL byte
the test doesn't expect).


More information about the Python-checkins mailing list