diff options
author | Claude Paroz <claude@2xlibre.net> | 2013-07-29 19:19:04 +0200 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2013-07-29 20:28:13 +0200 |
commit | 5c1143910e071c73671424036408c4548742d24f (patch) | |
tree | 20c67bd23a8590657cd28699f17c1a52bda2cebf /tests/get_object_or_404 | |
parent | 402b4a7a20a4f00fce0f01cdc3f5f97967fdb935 (diff) | |
download | django-5c1143910e071c73671424036408c4548742d24f.tar.gz |
Removed most of absolute_import imports
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
Diffstat (limited to 'tests/get_object_or_404')
-rw-r--r-- | tests/get_object_or_404/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/get_object_or_404/tests.py b/tests/get_object_or_404/tests.py index 38ebeb4f8c..1a0b41bc4d 100644 --- a/tests/get_object_or_404/tests.py +++ b/tests/get_object_or_404/tests.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import unicode_literals from django.http import Http404 from django.shortcuts import get_object_or_404, get_list_or_404 @@ -87,7 +87,7 @@ class GetObjectOr404Tests(TestCase): self.assertRaisesMessage(ValueError, "Object is of type 'str', but must be a Django Model, Manager, " "or QuerySet", - get_object_or_404, "Article", title__icontains="Run" + get_object_or_404, str("Article"), title__icontains="Run" ) class CustomClass(object): |