[qmtest] [PATCH] Add more annotations to QMTest runs
Zack Weinberg
zack at codesourcery.com
Wed Feb 11 22:29:09 UTC 2004
Mark Mitchell <mark at codesourcery.com> writes:
>>+ # 'getpass' doesn't necessarily work on Windows, so if that fails,
>>+ # try the win32 function.
>>+ try:
>>+ import win32api
>>
>>
> I'm a little bit afraid that we could some how get here under UNIX,
> and then try to import this module, which might cause weird things
> to happen. Perhaps we could assert that doesn't happen, or
> condition this whole block on sys.platform the way we do elsewhere
> in QMTest?
The import is wrapped in a try: ... except ImportError: block, which
should be adequate defense against getting here under Unix.
zw
More information about the qmtest
mailing list