[ibpy commit] r321 - trunk/demo

2 views
Skip to first unread message

codesite...@google.com

unread,
Jul 10, 2008, 2:25:52 AM7/10/08
to ibpy-...@googlegroups.com
Author: troy.melhase
Date: Wed Jul 9 23:25:43 2008
New Revision: 321

Modified:
trunk/demo/api_coverage

Log:
Fixed incorrect conditional check of tick price.

Modified: trunk/demo/api_coverage
==============================================================================
--- trunk/demo/api_coverage (original)
+++ trunk/demo/api_coverage Wed Jul 9 23:25:43 2008
@@ -206,7 +206,7 @@
def test_006(connection, options):
try:
askprice = [m.price for m in tick_msgs
- if getattr(m, 'price', None) and m.field==2][0]
+ if (getattr(m, 'price', None) is not None) and m.field==2][0]
except (IndexError, ):
askprice = 100.0
order = make_order(askprice)

Reply all
Reply to author
Forward
0 new messages