diff options
| author | Aymeric Augustin | 2013-10-16 23:11:26 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-17 18:24:58 +0200 | 
| commit | 87a73758431a417f6f1aa7313260e1049549f713 (patch) | |
| tree | b9cfaf7ac9075502ff119284ab4696711e920ca3 /tests/tests.py | |
| parent | 21e21aa088cde88cc5c690fa1f931a6208a8112a (diff) | |
| download | django-debug-toolbar-87a73758431a417f6f1aa7313260e1049549f713.tar.bz2 | |
Update imports for renamed modules.
Diffstat (limited to 'tests/tests.py')
| -rw-r--r-- | tests/tests.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/tests.py b/tests/tests.py index def4f8c..cdf1a9e 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -1,5 +1,4 @@  from __future__ import unicode_literals -import thread  import django  from django.conf import settings @@ -9,6 +8,7 @@ from django.http import HttpResponse  from django.test import TestCase, RequestFactory  from django.template import Template, Context  from django.utils import six +from django.utils.six.moves import _thread  from django.utils import unittest  from debug_toolbar.middleware import DebugToolbarMiddleware @@ -50,7 +50,7 @@ class BaseTestCase(TestCase):          response = HttpResponse()          toolbar = DebugToolbar(request) -        DebugToolbarMiddleware.debug_toolbars[thread.get_ident()] = toolbar +        DebugToolbarMiddleware.debug_toolbars[_thread.get_ident()] = toolbar          self.request = request          self.response = response | 
