diff options
author | Nobuaki Sukegawa <nsuke@apache.org> | 2015-11-17 11:01:41 +0900 |
---|---|---|
committer | Nobuaki Sukegawa <nsuke@apache.org> | 2015-12-24 02:11:17 +0900 |
commit | 9b35a7c021d06b9322e208e466a0f2aac1e95212 (patch) | |
tree | 87c083505b3353c40700582a7bbf6b31ffa1cf86 /test/py | |
parent | ae3775a6a5d7f2aeb192ade30d157aa54aa4e77f (diff) | |
download | thrift-9b35a7c021d06b9322e208e466a0f2aac1e95212.tar.gz |
THRIFT-3495 Minor enhancements and fixes for cross test
This closes #750
Diffstat (limited to 'test/py')
-rwxr-xr-x | test/py/TestClient.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/py/TestClient.py b/test/py/TestClient.py index 051890b25..8e3dcf814 100755 --- a/test/py/TestClient.py +++ b/test/py/TestClient.py @@ -177,12 +177,13 @@ class AbstractTest(unittest.TestCase): y = self.client.testTypedef(x) self.assertEqual(y, x) - @unittest.skip('Cannot use dict as dict key') def testMapMap(self): print('testMapMap') - # does not work: dict() is not a hashable type, so a dict() cannot be used as a key in another dict() - x = {{1: 10, 2: 20}, {1: 100, 2: 200, 3: 300}, {1: 1000, 2: 2000, 3: 3000, 4: 4000}} - y = self.client.testMapMap(x) + x = { + -4: {-4: -4, -3: -3, -2: -2, -1: -1}, + 4: {4: 4, 3: 3, 2: 2, 1: 1}, + } + y = self.client.testMapMap(42) self.assertEqual(y, x) def testMulti(self): |