Some tests in src/maasserver/tests/test_forms.py fails with TypeError (with Django 1.5)

Bug #1190591 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Raphaël Badin

Bug Description

These tests from src/maasserver/tests/test_forms.py fail with "TypeError: 'unicode' does not have the buffer interface" with Django 1.5: [0].

This is due to commit d7dfab59ead97b35c6f6786784225f377783e376 in django which replaces the usage of cStringIO.StringIO by io.BytesIO in django/core/files/uploadedfile.py. (This is part of the work to make Django Python 3-compatible as StringIO is not available in Python 3.)

[0] http://paste.ubuntu.com/5761367/

Related branches

Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
summary: - Some tests in src/maasserver/tests/test_forms.py fails withTypeError:
- 'unicode' does not have the buffer interface (with Django 1.5)
+ Some tests in src/maasserver/tests/test_forms.py fails with TypeError
+ (with Django 1.5)
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Released
Changed in maas:
status: Fix Released → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.