From 335aba6f265f694612e610c6acceb34c182a94c5 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 19 Feb 2016 14:20:30 +1100 Subject: Correct tests under both Python 2 and 3. --- pkg_resources/tests/test_resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg_resources/tests/test_resources.py') diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 909b29d3..7b98ae0d 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -384,8 +384,8 @@ class TestRequirements: r1 = Requirement.parse("Twisted[foo,bar]>=1.2") r2 = Requirement.parse("Twisted[bar,FOO]>=1.2") assert r1 == r2 - assert r1.extras == ("foo","bar") - assert r2.extras == ("foo","bar") + assert set(r1.extras) == set(("foo", "bar")) + assert set(r2.extras) == set(("foo", "bar")) assert hash(r1) == hash(r2) assert ( hash(r1) -- cgit v1.2.3