Update Python comparisons to None to use "is None" instead of equality

This commit is contained in:
Stefano Raggi
2018-07-03 00:55:35 +02:00
parent 7a9fc44ccd
commit e95863a919
12 changed files with 16 additions and 16 deletions
@@ -128,7 +128,7 @@ class UpdateOrderRegressionAlgorithm(QCAlgorithm):
raise ValueError("Expected filled order LastFillTime to equal fill order event time.")
# check the ticket to see if the update was successfully processed
if len([ur for ur in ticket.UpdateRequests if ur.Response is not None and ur.Response.IsSuccess]) > 0 and order.CreatedTime != self.UtcTime and order.LastUpdateTime == None:
if len([ur for ur in ticket.UpdateRequests if ur.Response is not None and ur.Response.IsSuccess]) > 0 and order.CreatedTime != self.UtcTime and order.LastUpdateTime is None:
raise ValueError("Expected updated order LastUpdateTime to equal submitted update order event time");
if orderEvent.Status == OrderStatus.Filled: