Skip to content

Commit

Permalink
Fix test for py2k
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan P Kilby committed Nov 16, 2017
1 parent d69f44a commit 16ec7ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_request.py
Expand Up @@ -230,6 +230,12 @@ def authenticate(self, request):
with pytest.raises(WrappedAttributeError, match=expected):
request.user

if six.PY2:
return

with pytest.raises(WrappedAttributeError, match=expected):
hasattr(request, 'user')

with pytest.raises(WrappedAttributeError, match=expected):
login(request, self.user)

Expand Down

0 comments on commit 16ec7ae

Please sign in to comment.