mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +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,4 +1,4 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from datetime import date
|
||||
import traceback
|
||||
|
|
@ -65,7 +65,7 @@ class GetOrCreateTests(TestCase):
|
|||
ManualPrimaryKeyTest.objects.get_or_create(id=1, data="Different")
|
||||
except IntegrityError as e:
|
||||
formatted_traceback = traceback.format_exc()
|
||||
self.assertIn('obj.save', formatted_traceback)
|
||||
self.assertIn(str('obj.save'), formatted_traceback)
|
||||
|
||||
def test_savepoint_rollback(self):
|
||||
# Regression test for #20463: the database connection should still be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue