[issue22943] bsddb: test_queue fails on Windows
Serhiy Storchaka
report at bugs.python.org
Wed Nov 26 09:30:26 CET 2014
Serhiy Storchaka added the comment:
This test is locale-depending. string.letters is the collection of 8-bit characters for which islower() or isupper() is true. On most Unixes the locale is either UTF-8 or ASCII and string.letters contains only ASCII letters. On most Windows it contains characters from extended ASCII, and the length of string.letters can be larger than 75 (minimal non-replacement index used in tests).
There is two simple way to fix this issue.
1) increase test indices to be larger than 255.
2) use string.ascii_letters instead of string.letters.
Here is the patch which uses the second approach (because string.letters is used in other tests).
----------
keywords: +patch
nosy: +serhiy.storchaka
stage: needs patch -> patch review
Added file: http://bugs.python.org/file37282/bsddbtests_ascii_letters.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22943>
_______________________________________
More information about the Python-bugs-list
mailing list