Fix tests and imports. issue #1253
This commit is contained in:
@@ -19,7 +19,12 @@ else:
|
||||
|
||||
import pymongo
|
||||
import gridfs
|
||||
from bson import Binary, DBRef, SON, ObjectId, Int64
|
||||
from bson import Binary, DBRef, SON, ObjectId
|
||||
|
||||
try:
|
||||
from bson.int64 import Int64
|
||||
except ImportError:
|
||||
Int64 = long
|
||||
|
||||
from mongoengine.errors import ValidationError
|
||||
from mongoengine.python_support import (PY3, bin_type, txt_type,
|
||||
|
||||
Reference in New Issue
Block a user