Skip to content

Commit 16ec7ae

Browse files
author
Ryan P Kilby
committed
Fix test for py2k
1 parent d69f44a commit 16ec7ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_request.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ def authenticate(self, request):
230230
with pytest.raises(WrappedAttributeError, match=expected):
231231
request.user
232232

233+
if six.PY2:
234+
return
235+
236+
with pytest.raises(WrappedAttributeError, match=expected):
237+
hasattr(request, 'user')
238+
233239
with pytest.raises(WrappedAttributeError, match=expected):
234240
login(request, self.user)
235241

0 commit comments

Comments
 (0)