mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 08:24:43 +01:00
Fix typo in test_struct
This commit is contained in:
parent
1d19d9f407
commit
b7fd9b526d
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ def test_to_dict_verbose(addressbook):
|
|||
|
||||
|
||||
def test_to_dict_ordered(addressbook):
|
||||
person = addressbook.Person.new_message(**{'name': 'Alice', 'phones': [{'type': 'mobile', 'number': '555-1212'}], 'id': 123L, 'employment': {'school': 'MIT'}, 'email': 'alice@example.com'})
|
||||
person = addressbook.Person.new_message(**{'name': 'Alice', 'phones': [{'type': 'mobile', 'number': '555-1212'}], 'id': 123, 'employment': {'school': 'MIT'}, 'email': 'alice@example.com'})
|
||||
|
||||
if sys.version_info >= (2, 7):
|
||||
assert list(person.to_dict(ordered=True).keys()) == ['id', 'name', 'email', 'phones', 'employment']
|
||||
|
|
Loading…
Add table
Reference in a new issue