sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12386
Re: [Question #205111]: Robotframework use unit test feature will get "I/O operation on closed file"
Question #205111 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205111
RaiMan posted a new comment:
--- 1. a difference
in script main.py (line number ?)
unittest.TextTestRunner(verbosity=2).run(suite)
in error message complaining main.py line 22
unittest.TextTestRunner(verbosity=2).run(suit)
the trailing e in run(suit) is missing!
how comes?
--- jython version
you say, you have
jython2.5.3b1
but in Sikuli latest version internally the version 2.5.2 is used
C:\Program Files\Sikuli X\sikuli-script.jar\Lib\unittest.py
So if you think, you need Jython 2.5.3, you might run the scripts directly using Jython.
you need
from sikuli import *
and a solution for the images to be used
--- class main
still not clear, why this is necessary.
Why not simply:
main.py
###################################
import ttt
import unittest
suite = unittest.TestLoader().loadTestsFromTestCase(ttt.ttt)
unittest.TextTestRunner(verbosity=2).run(suite)
###################################
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.