Fixed unittest2 import error on Python 2.7

Changed all unittest2 imports to unittest
This commit is contained in:
Tobias Brandt
2012-11-12 15:24:15 +02:00
committed by Eddie Hebert
parent cc715b81ae
commit cf4d7ca353
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import datetime
import pytz
from unittest2 import TestCase
from unittest import TestCase
from zipline.finance.slippage import VolumeShareSlippage
+1 -1
View File
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from unittest2 import TestCase
from unittest import TestCase
from datetime import timedelta
import numpy as np
+1 -1
View File
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from unittest2 import TestCase
from unittest import TestCase
import zipline.utils.simfactory as simfactory
from zipline.test_algorithms import (
+1 -1
View File
@@ -18,7 +18,7 @@ Tests for the zipline.finance package
"""
import pytz
from unittest2 import TestCase
from unittest import TestCase
from datetime import datetime, timedelta
from nose.tools import timed
+1 -1
View File
@@ -15,7 +15,7 @@
import pytz
from unittest2 import TestCase
from unittest import TestCase
from itertools import chain, izip_longest
from datetime import datetime, timedelta
from collections import deque
+1 -1
View File
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from unittest2 import TestCase
from unittest import TestCase
import zipline.utils.factory as factory
from zipline.sources import DataFrameSource
+1 -1
View File
@@ -18,7 +18,7 @@ import numpy as np
import pandas as pd
from datetime import timedelta, datetime
from unittest2 import TestCase
from unittest import TestCase
from zipline import ndict
+1 -1
View File
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from unittest2 import TestCase
from unittest import TestCase
from zipline.utils.factory import load_from_yahoo
import pandas as pd
import pytz