Opened 9 years ago

Closed 9 years ago

#24878 closed Uncategorized (invalid)

response.content TypeError: Type str doesn't support the buffer API

Reported by: Samuel Spencer Owned by: nobody
Component: Uncategorized Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top