We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7e5e6 commit 0ba0cdaCopy full SHA for 0ba0cda
tests/utils.py
@@ -1341,9 +1341,7 @@ def _should_skip(condition=None, until: int = None):
1341
until = dt.datetime.fromtimestamp(until)
1342
if until and dt.datetime.now(dt.timezone.utc).replace(tzinfo=None) < until.replace(tzinfo=None):
1343
return True
1344
- if condition is not None and condition:
1345
- return True
1346
- return False
+return condition is not None and condition
1347
1348
1349
def flaky(until: int = None, condition: bool = None, reason: str = None):
0 commit comments