Summary
EventDescriptor class has a bug in destructor implementation.
It tries to access nonexistent system library and fails with the exception:
Exception AttributeError: "'NoneType' object has no attribute 'close'" in <bound method EventDescriptor.__del__ of <ptf.ptfutils.EventDescriptor instance at 0x7f18966645a8>> ignored
Summary EventDescriptor class has a bug in destructor implementation. It tries to access nonexistent system library and fails with the exception:
line: https://github.com/p4lang/ptf/blob/master/src/ptf/ptfutils.py#L52
Steps to reproduce
Observed behavior EventDescriptor destructor throws an exception
Expected behavior EventDescriptor destructor should do a clean up gracefully