summaryrefslogtreecommitdiff
path: root/tests/get_or_create
diff options
context:
space:
mode:
authorSergey Fursov <geyser85@gmail.com>2016-09-26 01:25:38 +0300
committerTim Graham <timograham@gmail.com>2016-09-27 09:46:07 -0400
commit6709ea4ae91b906742506ac0c42a3a272991001f (patch)
tree39ba4c8a8481ecb99c10f292ec610d5352da8a2a /tests/get_or_create
parentb29c6c96c738bd7250a408b079dd8a4d4657849a (diff)
Fixed #27271 -- Fixed a crash in runserver logging.
Allowed ServerFormatter to handle simple string messages or messages with formatting arguments. The formatter will set the server_time variable on the log record if it's required by the format string but wasn't passed in extra parameters.
Diffstat (limited to 'tests/get_or_create')
-rw-r--r--tests/get_or_create/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py
index c569d938b0..8100c305b6 100644
--- a/tests/get_or_create/tests.py
+++ b/tests/get_or_create/tests.py
@@ -8,7 +8,8 @@ from threading import Thread
from django.core.exceptions import FieldError
from django.db import DatabaseError, IntegrityError, connection
from django.test import (
- SimpleTestCase, TestCase, TransactionTestCase, ignore_warnings, skipUnlessDBFeature,
+ SimpleTestCase, TestCase, TransactionTestCase, ignore_warnings,
+ skipUnlessDBFeature,
)
from django.utils.encoding import DjangoUnicodeDecodeError