support of qexec refactoring

This commit is contained in:
fawce
2012-09-12 00:30:37 -04:00
parent 1f55e8a033
commit 50de0f5e39
4 changed files with 2 additions and 8 deletions
-1
View File
@@ -21,7 +21,6 @@ from zipline.utils.test_utils import (
DEFAULT_TIMEOUT = 15 # seconds
EXTENDED_TIMEOUT = 90
allocator = AddressAllocator(1000)
class ExceptionTestCase(TestCase):
-2
View File
@@ -12,7 +12,6 @@ from nose.tools import timed
import zipline.utils.factory as factory
from zipline.finance.trading import TradingEnvironment
from zipline.core.devsimulator import AddressAllocator
from zipline.lines import SimulatedTrading
from zipline.finance.performance import PerformanceTracker
from zipline.utils.protocol_utils import ndict
@@ -26,7 +25,6 @@ from zipline.utils.test_utils import \
DEFAULT_TIMEOUT = 15 # seconds
EXTENDED_TIMEOUT = 90
allocator = AddressAllocator(1000)
class FinanceTestCase(TestCase):
-3
View File
@@ -12,8 +12,6 @@ from zipline.core.devsimulator import AddressAllocator
DEFAULT_TIMEOUT = 15 # seconds
EXTENDED_TIMEOUT = 90
allocator = AddressAllocator(1000)
from zipline.utils.test_utils import setup_logger, teardown_logger
class TestUpDown(TestCase):
@@ -26,7 +24,6 @@ class TestUpDown(TestCase):
def setUp(self):
self.zipline_test_config = {
'allocator' : allocator,
'sid' : 133,
'trade_count' : 5,
'amplitude' : 30,
+2 -2
View File
@@ -112,9 +112,9 @@ class SimulatedTrading(object):
self.gen = self.trading_client.simulate(self.with_tnfms)
def __iter__(self):
return self.gen
return self
def __next__(self):
def next(self):
return self.gen.next()
@staticmethod