Fix tests and imports. issue #1253

This commit is contained in:
Gilb's
2016-03-15 20:50:34 +01:00
parent 87a2358a65
commit d651d0d472
2 changed files with 23 additions and 15 deletions

View File

@@ -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,