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

Commit

Permalink
use py26 compatible set syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrterry committed Jan 28, 2017
1 parent b885cba commit cf6678d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_positional_args():
# thriftpy instantiates TPayload objects using positional args.
# thriftpy.thrift.TException being the most notable example.
# make sure that we don't break backwards compatiblity
s1 = Struct({1: 2}, {3, 4}, [5, 6])
assert s1.tdict == {1, 2}
assert s1.tset == {3, 4}
s1 = Struct({1: 2}, set([3, 4]), [5, 6])
assert s1.tdict == {1: 2}
assert s1.tset == set([3, 4])
assert s1.tlist == [5, 6]

0 comments on commit cf6678d

Please sign in to comment.