{"issue":{"milestone":null,"title":"simplejson 2.3.1: simplejson.tests.test_namedtuple.TestNamedTuple.test_namedtuple_dumps() fails when simplejson/_speedups.so extension module is present","created_at":"2011-12-29T23:21:33Z","user":{"login":"Arfrever","id":656294,"url":"https://api.github.com/users/Arfrever","avatar_url":"https://secure.gravatar.com/avatar/60d428e0f960370af7f678312cd06799?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"60d428e0f960370af7f678312cd06799"},"labels":[],"updated_at":"2011-12-30T07:28:31Z","state":"open","id":2683797,"closed_at":null,"html_url":"https://github.com/simplejson/simplejson/issues/27","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"If _speedups.so extension has been built, then test_namedtuple_dumps fails and a segmentation fault  can also occur. This regression has been introduced in simplejson 2.3.1. \r\n\r\n```\r\n$ python2.7 setup.py build_ext -i\r\n...\r\n$ python2.7 simplejson/tests/__init__.py\r\n..........................................................................F...................................................................................\r\n======================================================================\r\nFAIL: test_namedtuple_dumps (simplejson.tests.test_namedtuple.TestNamedTuple)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/tmp/simplejson-2.3.1/simplejson/tests/test_namedtuple.py\", line 54, in test_namedtuple_dumps\r\n    self.assertEqual(d, json.loads(json.dumps(v)))\r\nAssertionError: OrderedDict([('value', 1)]) != [1]\r\n\r\n----------------------------------------------------------------------\r\nRan 158 tests in 2.785s\r\n\r\nFAILED (failures=1)\r\n$ python2.7 simplejson/tests/__init__.py\r\n..........................................................................F........................................................................Segmentation fault\r\n```\r\n\r\nDeletion of *.pyc files avoids segmentation fault.","number":27,"url":"https://api.github.com/repos/simplejson/simplejson/issues/27","comments":1,"assignee":null},"comment":{"created_at":"2011-12-30T07:28:31Z","user":{"login":"etrepum","id":26596,"url":"https://api.github.com/users/etrepum","avatar_url":"https://secure.gravatar.com/avatar/b932b1e5a3e8299878e579f51f49b84a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b932b1e5a3e8299878e579f51f49b84a"},"updated_at":"2011-12-30T07:28:31Z","id":3311520,"body":"What platform is this? What Python version exactly? What version of simplejson were you using when the original .pyc files were compiled?","url":"https://api.github.com/repos/simplejson/simplejson/issues/comments/3311520"},"action":"created"}