Permalink
Browse files

use reload_module from six instead of reload

  • Loading branch information...
graingert committed Apr 7, 2013
1 parent f8b63e6 commit 54918dbe1e44feffa9c27fa782493792e740813a
Showing with 2 additions and 1 deletion.
  1. +2 −1 django_browserid/tests/test_views.py
@@ -9,6 +9,7 @@
from django_browserid import BrowserIDException, views
from django_browserid.tests import mock_browserid, patch_settings
+from six.moves import reload_module
factory = RequestFactory()
@@ -32,7 +33,7 @@ def verify(request_type, success_url=None, failure_url=None, **kwargs):
# We need to reload verify for the setting changes to take effect.
with patch_settings(**patches):
- reload(views)
+ reload_module(views)
verify_view = views.Verify.as_view()
with patch.object(auth, 'login'):
response = verify_view(request)

0 comments on commit 54918db

Please sign in to comment.