#25424: "AttributeError: '__proxy__' object has no attribute 'decode'" using
reverse_lazy in test client
-----------------------------------+--------------------
     Reporter:  SoftwareMaven      |      Owner:  nobody
         Type:  Bug                |     Status:  new
    Component:  Testing framework  |    Version:  1.8
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+--------------------
 This is basically the same as [https://code.djangoproject.com/ticket/18776
 this bug], just starting from the test client. The relevant stack trace:


 {{{
 Traceback (most recent call last):
   File "$SRC/tests/test_planner.py", line 49,
     r = self.client.get(reverse_lazy('generator'))
   File "$HOME/venvs/webapp/lib/python3.4/site-
 packages/django/test/client.py", line 500, in get
     **extra)
   File "$HOME/venvs/webapp/lib/python3.4/site-
 packages/django/test/client.py", line 303, in get
     return self.generic('GET', path, secure=secure, **r)
   File "$HOME/venvs/webapp/lib/python3.4/site-
 packages/django/test/client.py", line 357, in generic
     parsed = urlparse(path)
   File
 "$HOME/.pythonz/pythons/CPython-3.4.3/lib/python3.4/urllib/parse.py", line
 292, in urlparse
     url, scheme, _coerce_result = _coerce_args(url, scheme)
   File
 "$HOME/.pythonz/pythons/CPython-3.4.3/lib/python3.4/urllib/parse.py", line
 112, in _coerce_args
     return _decode_args(args) + (_encode_result,)
   File
 "$HOME/.pythonz/pythons/CPython-3.4.3/lib/python3.4/urllib/parse.py", line
 96, in _decode_args
     return tuple(x.decode(encoding, errors) if x else '' for x in args)
 AttributeError: '__proxy__' object has no attribute 'decode'
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25424>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.2708fd09ed992dcfed111a2e2d6ced07%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to