Skip to content

Commit

Permalink
TST: Prevent some test cases from being split
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kamens committed Aug 25, 2015
1 parent 39321c2 commit 2521263
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
from zipline.finance.trading import TradingEnvironment
from zipline.finance.commission import PerShare

# Because test cases appear to reuse some resources.
_multiprocess_can_split_ = False


class TestRecordAlgorithm(TestCase):
def setUp(self):
Expand Down
3 changes: 3 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
import os
from unittest import TestCase

# Otherwise the next line sometimes complains about being run too late.
_multiprocess_can_split_ = False

matplotlib.use('Agg')


Expand Down

0 comments on commit 2521263

Please sign in to comment.