From 43d0308ad6a8c83be645b09e8c1871b36ff3c4c9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 9 Feb 2016 17:12:47 +1100 Subject: Correct tests after the move to packaging 16.1. --- pkg_resources/tests/test_resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 4241765a..8066753b 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -383,7 +383,7 @@ class TestRequirements: r2 = Requirement.parse("Twisted[bar,FOO]>=1.2") assert r1 == r2 assert r1.extras == ("foo","bar") - assert r2.extras == ("bar","foo") # extras are normalized + assert r2.extras == ("foo","bar") assert hash(r1) == hash(r2) assert ( hash(r1) -- cgit v1.2.3 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