#9 global name 'WAIT_TIMEOUT' is not defined

closed-fixed
None
5
2009-11-27
2009-05-15
Anonymous
No

In case of a timeout an undefined symbol is used and raises an exception. This could be prevented by changing the code to
if result == win32defines.WAIT_TIMEOUT:

Here is a stack trace:

File "T:\bin\gen_perf.py", line 12, in do_convert
app = application.Application().start_(r"c:\program files\microsoft office\o
ffice11\excel.exe %s" % os.path.join(dirname, filename))
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",
line 929, in start_
WaitUntil(timeout, retry_interval, AppIdle)
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\timings.py", line
274, in WaitUntil
func_val = func(*args)
File "C:\Program Files\Python2.4\lib\site-packages\pywinauto\application.py",
line 922, in AppIdle
if result == WAIT_TIMEOUT:
NameError: global name 'WAIT_TIMEOUT' is not defined

Discussion

  • Mark Mc Mahon

    Mark Mc Mahon - 2009-11-21

    This has been fixed post 0.3.8. It will be in 0.3.9.

    Thanks for the bug report

     
  • Mark Mc Mahon

    Mark Mc Mahon - 2009-11-21
    • assigned_to: nobody --> mcmahon_m
    • status: open --> pending-fixed
     
  • Mark Mc Mahon

    Mark Mc Mahon - 2009-11-27
    • status: pending-fixed --> closed-fixed
     
  • Mark Mc Mahon

    Mark Mc Mahon - 2009-11-27

    Fixed in 0.3.9 (added "win32defines. " before WAIT_TIMEOUT)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks