← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #250441]: [1.1.0 beta1] get error while invoke unittest.main() --- cannot be used in Sikuli scripts

 

Question #250441 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/250441

    Status: Open => Answered

RaiMan proposed the following answer:
This is a known problem.

Using unittest in Sikuli script, you have to use a TestRunner, to run
your test.

Also 
if __name__ == '__main__':
might make problems in some situation and hence should not be used.

I register this "odd" situation now as a request bug, so it is on the
list.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.