[request] get error while invoke unittest.main() --- cannot be used in Sikuli scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Won't Fix
|
Medium
|
RaiMan |
Bug Description
Run the sample code form unittest document in SikuliX IDE, get a SystemExit error:
[error] script [ test ] stopped with error in line 64
[error] SystemExit ( False )
But there is no such issue if run this unit test using TextTestRunner. Below is the sample code.
Anyone have any sugesstion?
import os
import sys
import subprocess
import random
import unittest
class TestSequenceFun
def setUp(self):
self.seq = range(10)
#self.proc = subprocess.
#wait(2)
def test_shuffle(self):
# make sure the shuffled sequence does not lose any elements
# should raise an exception for an immutable sequence
def test_choice(self):
element = random.
def test_sample(self):
with self.assertRais
for element in random.
def tearDown(self):
pass
if __name__ == '__main__':
# python -m unittest test
unittest.main()
# python -m unittest -v test
#suite = unittest.
#unittest.
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.2.0 |
Changed in sikuli: | |
status: | In Progress → Won't Fix |
milestone: | 2.0.0 → none |