#24878: response.content TypeError: Type str doesn't support the buffer API
---------------------------------+--------------------
     Reporter:  LegoStormtroopr  |      Owner:  nobody
         Type:  Uncategorized    |     Status:  new
    Component:  Uncategorized    |    Version:  1.8
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 Every test in my tests suite for {{{ some_string in response.context}}
 fails with the same exception "TypeError: Type str doesn't support the
 buffer API".

 Fails for both Django 1.7 and Django 1.8

 Example code:

 {{{
         response = self.client.get(self.wg1.get_absolute_url())
         self.assertFalse("archive_modal" in response.content)
 }}}


 Corresponding traceback:

 {{{
 ======================================================================
 ERROR: test_manager_can_archive
 (aristotle_mdr.tests.test_workgroups.WorkgroupMemberTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/travis/build/aristotle-mdr/aristotle-metadata-
 registry/aristotle_mdr/tests/test_workgroups.py", line 192, in
 test_manager_can_archive
     self.assertFalse("archive_modal" in response.content)
 TypeError: Type str doesn't support the buffer API
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24878>
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/058.0c07b4f0f3b30f990a90289f39f07339%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to