Issue 9289: test_long_key(test_winreg) fails on win2k + py2.x (original) (raw)
test_long_key fails on win2k + python2.x.
====================================================================== ERROR: test_long_key (main.LocalWinregTests)
Traceback (most recent call last): File "test_winreg.py", line 279, in test_long_key DeleteKey(HKEY_CURRENT_USER, '\'.join((test_key_name, name))) WindowsError: [Error 234] データがさらにあります。
Error says "More data is available"
According to http://msdn.microsoft.com/en-us/library/ms724872(v=VS.85).aspx Value name: Windows 2000: 260 ANSI characters or 16,383 Unicode characters.
Windows 2000 cannot handle long value name like name in the test, so I think we should skip the test on Windows 2000.
I confirmed test runs fine on python3.x. Probably because it uses unicode Win32 API.