blob: 9ddd44a1f6a9292c136dc80c8ae1862ec0cfbd21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- flask-restful-0.2.12/tests/test_fields.py
+++ flask-restful-0.2.12/tests/test_fields.py
@@ -2,13 +2,17 @@
import unittest
from mock import Mock
from flask.ext.restful.fields import MarshallingException
-from flask.ext.restful.utils.ordereddict import OrderedDict
from flask_restful import fields
from datetime import datetime
from flask import Flask
#noinspection PyUnresolvedReferences
from nose.tools import assert_equals # you need it for tests in form of continuations
+try:
+ from collections import OrderedDict
+except ImportError:
+ from flask.ext.restful.utils.ordereddict import OrderedDict
+
class Foo(object):
def __init__(self):
|