From 7eb2269972e499dc42da81e025188b3c48a2cee2 Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Mon, 12 Jun 2023 10:32:58 +0200 Subject: [PATCH] test/infamy: Fix incorrect call when bailing out of MACVLAN creation We're calling the bound instance of __exit__, so `self` is superfluous. --- test/infamy/netns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/infamy/netns.py b/test/infamy/netns.py index d62c79f9..671906e9 100644 --- a/test/infamy/netns.py +++ b/test/infamy/netns.py @@ -22,14 +22,14 @@ class IsolatedMacVlan: done """) except Exception as e: - self.__exit__(self, None, None, None) + self.__exit__(None, None, None) raise e if self.lo: try: self.run(["ip", "link", "set", "dev", "lo", "up"]) except Exception as e: - self.__exit__(self, None, None, None) + self.__exit__(None, None, None) raise e return self