This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_long_key(test_winreg) fails on win2k + py2.x
Type: Stage: resolved
Components: Tests, Windows Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ocean-city
Priority: normal Keywords: patch

Created on 2010-07-18 00:48 by ocean-city, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
skip_test_long_key.patch ocean-city, 2010-07-18 00:48
py27_fix_test_winreg_long_key.patch ocean-city, 2010-09-26 05:27
Messages (3)
msg110620 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2010-07-18 00:48
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.
msg117402 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2010-09-26 05:27
I found workaround for this. (Probably self.deletetree is
more handful, though)
msg119381 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2010-10-22 12:03
I committed in r85790(release27-maint).
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53535
2010-10-22 12:03:51ocean-citysetstatus: open -> closed
title: Skip test_long_key(test_winreg) on win2k + py2.x -> test_long_key(test_winreg) fails on win2k + py2.x
messages: + msg119381

resolution: fixed
stage: patch review -> resolved
2010-09-26 05:27:37ocean-citysetfiles: + py27_fix_test_winreg_long_key.patch

messages: + msg117402
versions: - Python 2.6
2010-07-18 00:48:50ocean-citycreate