← Back to team overview

sikuli-driver team mailing list archive

[Bug 824185] [NEW] IndexError in unittest.main()

 

Public bug reported:

If using the unittest module in the Sikuli IDE, it will fail after
calling unittest.main() with this backtrace.

[error] Error message: Traceback (most recent call last):
File "C:\DOCUME~1\JSTERN~1\LOCALS~1\Temp\sikuli-tmp6357708907197010851.py", line 28, in
    unittest.main()
File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\unittest.py", line 766, in __init__
IndexError: index out of range: 0

That line is:
        self.progName = os.path.basename(argv[0])

It just looks like Sikuli isn't passing the program name as the first
argument and the unittest module wants that.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/824185

Title:
  IndexError in unittest.main()

Status in Sikuli:
  New

Bug description:
  If using the unittest module in the Sikuli IDE, it will fail after
  calling unittest.main() with this backtrace.

  [error] Error message: Traceback (most recent call last):
  File "C:\DOCUME~1\JSTERN~1\LOCALS~1\Temp\sikuli-tmp6357708907197010851.py", line 28, in
      unittest.main()
  File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\unittest.py", line 766, in __init__
  IndexError: index out of range: 0

  That line is:
          self.progName = os.path.basename(argv[0])

  It just looks like Sikuli isn't passing the program name as the first
  argument and the unittest module wants that.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/824185/+subscriptions


Follow ups

References