[2.0.1] HTMLTestRunner: stream.close(): AttributeError ( '_TestResult' object has no attribute 'isAborted' )
SikuliX version - 2.0.1
Jython version - 2.7.1
Virutal Machine - Ubuntu 18.04.3 LTS
Code -
# Paths of timeNET, PetriNet Models have to be set in the test script
localtime = time.localtime(
timestring = time.strftime ('%d-%m-
#Directory in which all the .sikuli folders are present
dir = "/home/
from sikuli import*
import os
import unittest
import HTMLTestRunner
###########
## Class 1 ##
###########
class TimeNet_
#Case1
def test_TimeNet_
import TimeNET_Open
###########
## Class 11 ##
###########
class CloseTimeNET(
#Case1
def test_timenet_
import TimeNET_Close
#######
## TestLoad and TestSuite ##
#######
suite = unittest.
suite.addTests(
outfile = open("/
runner = HTMLTestRunner.
outfile.close()
NOTE - - Everything runs fine. Test report is also generated in the mentioned directory. However, the message consoles shows this below error -
[log] TYPE "t"
[log] TYPE "cd /home/suman/
[log] TYPE "sudo ./startGUI#ENTER."
[log] TYPE "suman#ENTER."
[log] CLICK on L[1877,8]@S(0) (630 msec)
[log] CLICK on L[1899,10]@S(0) (565 msec)
ok test_TimeNet_Open (__main_
ok test_timenet_close (__main_
Time Elapsed: 0:00:30.699000
[error] script [ TestRunner ] stopped with error in line 38
[error] AttributeError ( '_TestResult' object has no attribute 'isAborted' )
[error] --- Traceback --- error source first
line: module ( function ) statement
38: main ( <module> ) outfile.close()
[error] --- Traceback --- end --------------
NOTE - Everything runs fine. Test report is also generated in the mentioned directory. However, the message consoles shows this above error.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Shresth Suman for more information if necessary.