Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit cf6678d

Browse files
committed
use py26 compatible set syntax
1 parent b885cba commit cf6678d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_type.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_positional_args():
5555
# thriftpy instantiates TPayload objects using positional args.
5656
# thriftpy.thrift.TException being the most notable example.
5757
# make sure that we don't break backwards compatiblity
58-
s1 = Struct({1: 2}, {3, 4}, [5, 6])
59-
assert s1.tdict == {1, 2}
60-
assert s1.tset == {3, 4}
58+
s1 = Struct({1: 2}, set([3, 4]), [5, 6])
59+
assert s1.tdict == {1: 2}
60+
assert s1.tset == set([3, 4])
6161
assert s1.tlist == [5, 6]

0 commit comments

Comments
 (0)