Revision: 4128
Author: jprantan
Date: Fri Sep 24 01:38:01 2010
Log: Fixed to work with 2.5 Python.
http://code.google.com/p/robotframework/source/detail?r=4128
Modified:
/trunk/src/robot/libraries/Dialogs.py
=======================================
--- /trunk/src/robot/libraries/Dialogs.py Thu Sep 23 05:18:38 2010
+++ /trunk/src/robot/libraries/Dialogs.py Fri Sep 24 01:38:01 2010
@@ -89,7 +89,7 @@
def _prevent_execution_with_timeouts(method):
def _check_timeout(*args):
- if os.name == 'nt' and currentThread().name != 'MainThread':
+ if os.name == 'nt' and
currentThread().getName() != 'MainThread':
raise AssertionError("Dialogs library cannot be used with "
"timeout on Windows with Python.")
return method(*args)