mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 07:56:38 +08:00
Fixed unittest2 import error on Python 2.7
Changed all unittest2 imports to unittest
This commit is contained in:
committed by
Eddie Hebert
parent
cc715b81ae
commit
cf4d7ca353
@@ -20,7 +20,7 @@ import datetime
|
||||
|
||||
import pytz
|
||||
|
||||
from unittest2 import TestCase
|
||||
from unittest import TestCase
|
||||
|
||||
from zipline.finance.slippage import VolumeShareSlippage
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user