From 04cf61d03dfc359eae4b977e2bc92279d68c5751 Mon Sep 17 00:00:00 2001 From: Jean Bredeche Date: Wed, 26 Apr 2017 10:47:27 -0400 Subject: [PATCH] BUG: Python3 compatibility. --- tests/test_api_shim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api_shim.py b/tests/test_api_shim.py index b90ed2b7..4773e57f 100644 --- a/tests/test_api_shim.py +++ b/tests/test_api_shim.py @@ -539,7 +539,7 @@ class TestAPIShim(WithCreateBarData, self.assertEqual(1, len(w)) self.assertEqual( - w[0].message.message, + str(w[0].message), "Referencing positions by integer is deprecated. Use an asset " "instead." ) @@ -555,7 +555,7 @@ class TestAPIShim(WithCreateBarData, self.assertEqual(1, len(w)) self.assertEqual( - w[0].message.message, + str(w[0].message), "Position lookup expected a value of type Asset but got str" " instead." )