diff --git a/neo/tests/functional/__init__.py b/neo/tests/functional/__init__.py index 02ceffabec5718aa62a14794689595bd2f7dfd45..b1328f4f65749ceb68dcfcceaf06d9bdcac5b497 100644 --- a/neo/tests/functional/__init__.py +++ b/neo/tests/functional/__init__.py @@ -163,6 +163,9 @@ class NEOProcess(object): # prevent child from killing anything del self.__class__.__del__ try: + # release system-wide lock + for allocator in PortAllocator.allocator_set.copy(): + allocator.reset() sys.argv = [command] + args getattr(neo.scripts, command).main() sys.exit()