← Back to team overview

sikuli-driver team mailing list archive

[Bug 824185] Re: X-1.0rc2: IDE: unittest.main() not usable - sys.argv is empty --- workaround

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
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:
  X-1.0rc2: IDE: unittest.main() not usable - sys.argv is empty ---
  workaround

Status in Sikuli:
  In Progress

Bug description:
  *** workaround:
  see comment #1
  ---------------------------------

  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


References