9676c28f9c

Fixes broken functional tests where NamespaceFixture is used and the TestTimer raises TestTimerTimeout even if the namespace was cleaned up in time. The fix makes sure that the alarm is cancelled in __exit__ if there was no alarm before TestTimer's __enter__ (if self._old_timer is 0). It also makes sure to reset the signal handler if the old one was Handler.SIG_DFL (which is treated as false, no we need to check for "is not None" instead). Closes-Bug: #1912320 Change-Id: I9efad8eb5fe6e794235280f8a9a026800513d969
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute, please read the CONTRIBUTING.rst file.
Description
Languages
Python
99.7%
Shell
0.3%