sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02623
[Bug 620598] Re: X-1.0rc2: UnitTest: from __future__ fails in unit test script
** Summary changed:
- 0.10.2 from __future__ fails in unit test script
+ X-1.0rc2: UnitTest: from __future__ fails in unit test script
** Changed in: sikuli
Milestone: x1.0-rc1 => None
** Changed in: sikuli
Status: Fix Committed => In Progress
** Description changed:
+ reported with 10.2, fix committed for rc1, but still buggy with rc2
+ --------------------------------------------------------------------
+
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
+ with open('myfile.txt') as myfile:
+ assert(len(myfile.read())) > 0
32-bit Ubuntu 10.04, Sikuli 0.10.2
--
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:
X-1.0rc2: UnitTest: from __future__ fails in unit test script
Status in Sikuli:
In Progress
Bug description:
reported with 10.2, fix committed for rc1, but still buggy with rc2
--------------------------------------------------------------------
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