From ca1a16db8371cdf6003ecb78e1810d0bacc669bd Mon Sep 17 00:00:00 2001 From: Mitch Burton Date: Tue, 26 Nov 2024 17:48:44 -0800 Subject: [PATCH] lint --- landscape/lib/testing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/landscape/lib/testing.py b/landscape/lib/testing.py index b9c6e06c..e801bb8e 100644 --- a/landscape/lib/testing.py +++ b/landscape/lib/testing.py @@ -687,7 +687,10 @@ def fake(): try: deferred = f(*args, **kwargs) - if hasattr(deferred, "result") and isinstance(deferred.result, Failure): + if ( + hasattr(deferred, "result") + and isinstance(deferred.result, Failure) + ): # Required for some failures to get GC'd properly flushed. # Twisted did this in versions < 24.10, but now we have to. deferred.result.cleanFailure()