summaryrefslogtreecommitdiff
path: root/tests/integration/dynamodb2/test_highlevel.py
diff options
context:
space:
mode:
authorDaniel G. Taylor <danielgtaylor@gmail.com>2013-10-04 12:12:13 -0700
committerDaniel G. Taylor <danielgtaylor@gmail.com>2013-10-04 12:15:37 -0700
commit150aef68d408bfe4feca41d2fe2bcfbef04a0876 (patch)
tree8c3c66214ca6333ce7b3b6f56eaa0c96b534ea8a /tests/integration/dynamodb2/test_highlevel.py
parent76aef10babd4d20a3aa5b779839d5f47bbbae528 (diff)
downloadboto-150aef68d408bfe4feca41d2fe2bcfbef04a0876.tar.gz
Python 2.5.x fixes
Diffstat (limited to 'tests/integration/dynamodb2/test_highlevel.py')
-rw-r--r--tests/integration/dynamodb2/test_highlevel.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/integration/dynamodb2/test_highlevel.py b/tests/integration/dynamodb2/test_highlevel.py
index c4a8a9a1..46848fae 100644
--- a/tests/integration/dynamodb2/test_highlevel.py
+++ b/tests/integration/dynamodb2/test_highlevel.py
@@ -23,6 +23,8 @@
"""
Tests for DynamoDB v2 high-level abstractions.
"""
+from __future__ import with_statement
+
import time
from tests.unit import unittest
@@ -44,12 +46,12 @@ class DynamoDBv2Test(unittest.TestCase):
], throughput={
'read': 5,
'write': 5,
- }, indexes={
+ }, indexes=[
KeysOnlyIndex('LastNameIndex', parts=[
HashKey('username'),
RangeKey('last_name')
]),
- })
+ ])
self.addCleanup(users.delete)
self.assertEqual(len(users.schema), 2)