From 7a6e85517ad5f4d78283659ffac47cd25fe4d4ed Mon Sep 17 00:00:00 2001 From: Paul Craciunoiu Date: Fri, 8 Jan 2016 17:46:55 -0700 Subject: [PATCH] Quick fix for test in python3.3 --- tests/test_dynamodb2/test_dynamodb_table_with_range_key.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_dynamodb2/test_dynamodb_table_with_range_key.py b/tests/test_dynamodb2/test_dynamodb_table_with_range_key.py index 639fc0687..9dddbadc4 100644 --- a/tests/test_dynamodb2/test_dynamodb_table_with_range_key.py +++ b/tests/test_dynamodb2/test_dynamodb_table_with_range_key.py @@ -818,12 +818,13 @@ def test_update_item_range_key_set(): }, ) - returned_item = table.get_item(Key=item_key)['Item'] + returned_item = dict((k, str(v) if isinstance(v, Decimal) else v) + for k, v in table.get_item(Key=item_key)['Item'].items()) dict(returned_item).should.equal({ 'username': "johndoe2", 'forum_name': 'the-key', 'subject': '123', - 'created': Decimal('4'), + 'created': '4', 'mapfield': {'key': 'value'}, })