Skip to content

Commit

Permalink
use thread from six.moves in tests/tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Apr 8, 2013
1 parent e3723e3 commit bab0aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
@@ -1,5 +1,5 @@
from __future__ import with_statement
import thread
from django.utils.six.moves import _thread

from django.conf import settings
from django.contrib.auth.models import User
Expand Down Expand Up @@ -48,7 +48,7 @@ def setUp(self):
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
Expand Down

0 comments on commit bab0aee

Please sign in to comment.