[Bug 1812061] Re: Unicode prefixes break tests in python-json-schema-validator with python-simplejson 3.16.0

Ɓukasz Zemczak 1812061 at bugs.launchpad.net
Thu Jan 17 11:07:17 UTC 2019


Thanks for the fix!

** Changed in: json-schema-validator (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1812061

Title:
  Unicode prefixes break tests in python-json-schema-validator with
  python-simplejson 3.16.0

Status in json-schema-validator package in Ubuntu:
  Fix Committed

Bug description:
  The json-schema-validator tests break under Python 2, when used with
  simplejson 3.16.0. They will also break if/when attempted under Python
  3.

  The underlying simplejson library subtly changes behaviour from 3.15.0
  to 3.16.0. Under Python 2, with simplejson 3.15.0, passing a byte-
  string to simplejson.loads containing a blank JSON-encoded string,
  e.g. simplejson.loads('""') returns a unicode string (u''). However,
  under 3.16.0 this changes to return a byte-string (''). Passing a
  unicode-string to simplejson.loads containing a blank JSON-encoded
  string, e.g. simplejson.loads(u'""') return a unicode string under
  both versions.

  Patched version at:
  https://launchpad.net/~waveform/+archive/ubuntu/pkg - 2.3.1-3ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/json-schema-validator/+bug/1812061/+subscriptions



More information about the Ubuntu-sponsors mailing list