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)