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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy