Branch: refs/heads/nine
  Home:   https://github.com/buildbot/buildbot
  Commit: d8ecc28a191f2e836c8a878d6dd45d1b04a8bf47
      
https://github.com/buildbot/buildbot/commit/d8ecc28a191f2e836c8a878d6dd45d1b04a8bf47
  Author: Olof Johansson <[email protected]>
  Date:   2013-04-20 (Sat, 20 Apr 2013)

  Changed paths:
    M master/buildbot/test/unit/test_www_rest.py

  Log Message:
  -----------
  Handle both json and simplejson in unit tests

The simplejson and the json modules differ in the way they handle
trailing whitespace when indent is set.

  >>> json.dumps({"foo":[1,2]}, indent=2)
  '{\n  "foo": [\n    1, \n    2\n  ]\n}'

  >>> simplejson.dumps({"foo":[1,2]}, indent=2)
  '{\n  "foo": [\n    1,\n    2\n  ]\n}'

With this change, the unit tests use the same json implementation as the
tested code instead of hardcoding the expected json string in this
situation.


  Commit: 5b86ae071331944ef9969dda8c7d8681397b849f
      
https://github.com/buildbot/buildbot/commit/5b86ae071331944ef9969dda8c7d8681397b849f
  Author: Dustin J. Mitchell <[email protected]>
  Date:   2013-04-20 (Sat, 20 Apr 2013)

  Changed paths:
    M master/buildbot/test/unit/test_www_rest.py

  Log Message:
  -----------
  Merge branch 'topic/unit-simplejson_vs_json' of 
git://github.com/olof/buildbot into nine


Compare: 
https://github.com/buildbot/buildbot/compare/e145f0290e52...5b86ae071331
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to