Skip to content

Commit 0ba0cda

Browse files
wantsuiquinna-h
andcommitted
Update tests/utils.py
Co-authored-by: Quinna Halim <[email protected]>
1 parent 1b7e5e6 commit 0ba0cda

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1341,9 +1341,7 @@ def _should_skip(condition=None, until: int = None):
13411341
until = dt.datetime.fromtimestamp(until)
13421342
if until and dt.datetime.now(dt.timezone.utc).replace(tzinfo=None) < until.replace(tzinfo=None):
13431343
return True
1344-
if condition is not None and condition:
1345-
return True
1346-
return False
1344+
return condition is not None and condition
13471345

13481346

13491347
def flaky(until: int = None, condition: bool = None, reason: str = None):

0 commit comments

Comments
 (0)