运行 python selenium unittest 时,我看到一个错误:
/usr/lib/python3.6/unittest/case.py:605: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/newuser/scable/HTML_Test_Runner_ReportTest.html' mode='w' encoding='UTF-8'>
testMethod()
.
----------------------------------------------------------------------
Ran 1 test in 0.006s
OK
sys:1: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 42230), raddr=('127.0.0.1', 34255)>
Run Code Online (Sandbox Code Playgroud)
这个错误是什么意思?
python selenium python-3.x selenium-webdriver python-unittest