[python-win32] Creating a list of stress tests for unit tests involving files

Tim Roberts timr at probo.com
Thu Jun 10 00:02:28 CEST 2010


On 6/9/2010 2:30 PM, python at bdurham.com wrote:
> I'm working on a set of unit tests designed to stress test some file
> handling capabilities of our application.
> ...
> UNITTEST_UNICODE_PATH = ur'\xunicode_test_\xb0_\xb1_'

That string consists of nothing but ordinary ASCII characters (in part,
because of the "r"). Were you trying to include some real Unicode
outside of the ASCII subset? If so, then maybe something like this:

UNITTEST_UNICODE_PATH = u"U\u00F1i\u00E7\u03B8de"

That's "Uñiçθde", which is a valid Windows file name.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list