Support Python 3 versions of JSON decode errors.

Review Request #10488 — Created April 1, 2019 and submitted

Information

Review Board
release-4.0.x

Reviewers

Python 3 enhanced the error messages when encountering JSON content that
can't be decoded. This change fixes up a couple unit tests that compare
against these error messages, checking the appropriate version depending
on the version of Python.

Unit tests pass on Python 2.7 with Django 1.6 and Python 3.5-3.7 with
Django 1.11 (with other in-progress changes).

Summary ID
Support Python 3 versions of JSON decode errors.
Python 3 enhanced the error messages when encountering JSON content that can't be decoded. This change fixes up a couple unit tests that compare against these error messages, checking the appropriate version depending on the version of Python.
0843859354f11fc224f5c5b8b08a5d5b4609b84c
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (440a31e)
Loading...