← Back to team overview

sikuli-driver team mailing list archive

[Question #171632]: [IDE Bug] pyhton unittests with sikuli

 

New question #171632 on Sikuli:
https://answers.launchpad.net/sikuli/+question/171632

I use X-1.0rc3 and win7

Step 1: Open the IDE and type the following code in a new document:

import math
import unittest
import operator

class TestMath(unittest.TestCase):

    def testMultiplication(self):
        self.assertAlmostEqual(0.3, 0.1 * 3)

if __name__ == '__main__':
    unittest.main()

Step 2: click "run"-button

Step 3: You'll get an error: SystemExit: False

Step 4: Save the script to any location. 

Step 5: click the "run"-button again

Step 6: You'll get something like:  AttributeError: 'module' object has no attribute 'sikuli-tmp993658317334223710.py'

Repeat steps 4 and 5 some more times. Everytime you run the script, the error message appears and contains the last(not the current!!) filename of the script.

Can somebody confirm this bug?

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