mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 11:18:09 +08:00
Merge pull request #1769 from quantopian/py3-warnings
BUG: Python3 compatibility.
This commit is contained in:
@@ -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."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user