mirror of https://github.com/davisking/dlib.git
Made test work in python3
This commit is contained in:
parent
077a3b60e7
commit
1e051f1a60
|
@ -3,7 +3,12 @@ try:
|
|||
import cPickle as pickle # Use cPickle on Python 2.7
|
||||
except ImportError:
|
||||
import pickle
|
||||
from types import FloatType
|
||||
|
||||
try:
|
||||
from types import FloatType
|
||||
except ImportError:
|
||||
FloatType = float
|
||||
|
||||
from pytest import raises
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue