1、 Run the main function, no test report is generated, and an error is reported: ‘_TestResult’ object has no attribute ‘outputBuffer’
Solution:
1. In htmltestreportcn.py
CTRL + F search_Testresult method, in__init__Add to method:
self.outputBuffer = io.StringIO() self.test_start_time = round(time.time(), 2)
Similar Posts:
- How to use htmltestrunner.py to report importerror: no module named ‘stringio’ in Python 3
- [daily development record] pycurl Python 3 error (23),’failed writing body (0= 456)
- [Solved] pyqt5 ‘QWidget’ object has no attribute ‘setCentralWidget’
- loaded some nib but the view outlet was not set
- PaddlePaddle Error: ‘map’ object is not subscriptable
- Object() takes no parameters of Python errors
- Python: __ new__ Method and the processing of typeerror: object() takes no parameters
- event.srcElement And event.target The difference between
- How to Use Array.prototype.slice.call(arguments)
- ERROR: Functions in index expression must be marked IMMUTABLE