faucetsdn / faucetagent

gNMI agent for faucet configuration
4 stars 2 forks source link

Occasional resourcewarning in agent test #40

Closed lantz closed 4 years ago

lantz commented 4 years ago
/usr/lib/python3.6/subprocess.py:786: ResourceWarning: subprocess 10655 is still running
227
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=3 mode='r' encoding='UTF-8'>
228
/usr/lib/python3.6/subprocess.py:786: ResourceWarning: subprocess 11034 is still running
229
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=5 mode='r' encoding='UTF-8'>

This seems to be happening in because FAUCET.stop() is not calling the superclass .stop() which calls .terminate() to shut down its bash process.