mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed most of absolute_import imports
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
This commit is contained in:
parent
402b4a7a20
commit
5c1143910e
264 changed files with 194 additions and 366 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.test import TestCase
|
||||
from .models import Foo, Whiz, Bar, Article, Base, Child
|
||||
|
@ -80,4 +80,4 @@ class StringLookupTests(TestCase):
|
|||
self.assertEqual(repr(Article.objects.filter(submitted_from__contains='192.0.2')),
|
||||
repr([a]))
|
||||
# Test that the searches do not match the subnet mask (/32 in this case)
|
||||
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)
|
||||
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue