neutron/neutron/tests/common
Bodo Petermann 9676c28f9c Fix stopping timer in TestTimer
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
2021-01-19 13:43:58 +01:00
..
agents Complete removal of dependency on the "mock" package 2020-05-01 12:05:34 -04:00
exclusive_resources use synchronized lock decorator from neutron-lib 2017-10-04 13:57:42 -06:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Remove references to unittest2 library 2020-01-14 09:03:26 +00:00
config_fixtures.py Remove "six" library 2020-07-28 16:55:52 +00:00
conn_testers.py Drop of_interface option 2019-05-24 10:33:48 +02:00
helpers.py Fix stopping timer in TestTimer 2021-01-19 13:43:58 +01:00
l3_test_common.py Remove "six" library 2020-07-28 16:55:52 +00:00
machine_fixtures.py Merge "fullstack: test for IPv6 north-south traffic" 2016-11-09 12:02:45 +00:00
net_helpers.py Capture timeout exception when deleting NamespaceFixture 2020-10-06 13:39:41 +00:00