Skip to content

Commit

Permalink
tests: compare Dep use dependencies against list instead of set
Browse files Browse the repository at this point in the history
OrderedFrozenSet comparisons convert to lists in both cases anyway.
  • Loading branch information
radhermit committed Dec 18, 2023
1 parent b082ea5 commit 3606014
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/dep/test_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from pkgcraft.eapi import EAPI_LATEST, EAPI_LATEST_OFFICIAL, EAPIS, eapi_range
from pkgcraft.error import InvalidDep
from pkgcraft.restrict import Restrict
from pkgcraft.types import OrderedFrozenSet

from ..misc import TEST_DATA, OperatorIterMap, OperatorMap

Expand Down Expand Up @@ -262,7 +261,7 @@ def test_toml_valid(self):
"revision": Revision,
"version": Version,
"slot_op": SlotOperator.from_str,
"use": lambda l: OrderedFrozenSet(UseDep(x) for x in l),
"use": lambda l: [UseDep(x) for x in l],
}

for entry in TEST_DATA.toml("dep.toml")["valid"]:
Expand Down

0 comments on commit 3606014

Please sign in to comment.