Skip to content

Commit 601f8be

Browse files
fix boolean logic
1 parent 3457293 commit 601f8be

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/populate_tox/populate_tox.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ def _get_dependency_probe_constraints(
172172
constraints = []
173173
for rule, dependencies in TEST_SUITE_CONFIG[integration].get("deps", {}).items():
174174
# Skip if rule does not apply to current package or Python version
175-
if (
176-
rule == "*"
177-
or (rule.startswith("py3") and f"py{python_version}" not in rule.split(","))
175+
if rule != "*" and (
176+
(rule.startswith("py3") and f"py{python_version}" not in rule.split(","))
178177
or (
179178
not rule.startswith("py3")
180179
and release not in SpecifierSet(rule, prereleases=True)

0 commit comments

Comments
 (0)