mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
7b2f2e74ad
commit
2b281cc35e
180 changed files with 421 additions and 559 deletions
|
@ -1,10 +1,10 @@
|
|||
import sys
|
||||
import unittest
|
||||
from io import StringIO
|
||||
|
||||
from django.db import connection
|
||||
from django.test import TestCase
|
||||
from django.test.runner import DiscoverRunner
|
||||
from django.utils import six
|
||||
|
||||
from .models import Person
|
||||
|
||||
|
@ -33,7 +33,7 @@ class TestDebugSQL(unittest.TestCase):
|
|||
suite.addTest(self.ErrorTest())
|
||||
suite.addTest(self.PassingTest())
|
||||
old_config = runner.setup_databases()
|
||||
stream = six.StringIO()
|
||||
stream = StringIO()
|
||||
resultclass = runner.get_resultclass()
|
||||
runner.test_runner(
|
||||
verbosity=verbosity,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue