sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02607
[Bug 620598] Re: 0.10.2 from __future__ fails in unit test script
yes should be, since it had rc1 as target.
already tried it with rc2?
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/620598
Title:
0.10.2 from __future__ fails in unit test script
Status in Sikuli:
Fix Committed
Bug description:
When a test script is run (from the Run button in the Testing pane)
that uses a "from __future__" import, it gives:
Exception in thread "AWT-EventQueue-0" SyntaxError: ('from __future__
imports must occur at the beginning of the file', ('<string>', 11, 1,
''))
Sample script:
from __future__ import with_statement
def test_file_not_empty(self):
with open('myfile.txt') as myfile:
assert(len(myfile.read())) > 0
32-bit Ubuntu 10.04, Sikuli 0.10.2