Skip to content

Commit 1f98048

Browse files
asottile-sentryc298lee
authored andcommitted
ref: make this conditional less confusing (#77193)
<!-- Describe your PR here. -->
1 parent 7f8d6d9 commit 1f98048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/testutils/hybrid_cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __call__(self, execute: Callable[..., Any], *params: Any) -> Any:
122122
raise CrossTransactionAssertionError(
123123
f"Found mixed open transactions between dbs {open_transactions}"
124124
)
125-
if open_transactions and not (self.alias in open_transactions):
125+
if open_transactions and self.alias not in open_transactions:
126126
raise CrossTransactionAssertionError(
127127
f"Transaction opened for db {open_transactions}, but command running against db {self.alias}"
128128
)

0 commit comments

Comments
 (0)