diff options
Diffstat (limited to 'dev-python/flask-restful/files')
-rw-r--r-- | dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch b/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch new file mode 100644 index 00000000000..9ddd44a1f6a --- /dev/null +++ b/dev-python/flask-restful/files/flask-restful-0.2.12-tests.patch @@ -0,0 +1,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): |