{"action":"created","issue":{"url":"https://api.github.com/repos/pymc-devs/pymc3/issues/889","labels_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/889/labels{/name}","comments_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/889/comments","events_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/889/events","html_url":"https://github.com/pymc-devs/pymc3/issues/889","id":121892274,"number":889,"title":"paralellized tests","user":{"login":"keszybz","id":349618,"avatar_url":"https://avatars.githubusercontent.com/u/349618?v=3","gravatar_id":"","url":"https://api.github.com/users/keszybz","html_url":"https://github.com/keszybz","followers_url":"https://api.github.com/users/keszybz/followers","following_url":"https://api.github.com/users/keszybz/following{/other_user}","gists_url":"https://api.github.com/users/keszybz/gists{/gist_id}","starred_url":"https://api.github.com/users/keszybz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keszybz/subscriptions","organizations_url":"https://api.github.com/users/keszybz/orgs","repos_url":"https://api.github.com/users/keszybz/repos","events_url":"https://api.github.com/users/keszybz/events{/privacy}","received_events_url":"https://api.github.com/users/keszybz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-13T01:57:17Z","updated_at":"2015-12-25T16:23:13Z","closed_at":null,"body":"This came up as part of the package review for Fedora [https://bugzilla.redhat.com/show_bug.cgi?id=1288870]: tests are the slowest part of build, it would be great if tests could be use a specified number of threads to run faster."},"comment":{"url":"https://api.github.com/repos/pymc-devs/pymc3/issues/comments/167248590","html_url":"https://github.com/pymc-devs/pymc3/issues/889#issuecomment-167248590","issue_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/889","id":167248590,"user":{"login":"keszybz","id":349618,"avatar_url":"https://avatars.githubusercontent.com/u/349618?v=3","gravatar_id":"","url":"https://api.github.com/users/keszybz","html_url":"https://github.com/keszybz","followers_url":"https://api.github.com/users/keszybz/followers","following_url":"https://api.github.com/users/keszybz/following{/other_user}","gists_url":"https://api.github.com/users/keszybz/gists{/gist_id}","starred_url":"https://api.github.com/users/keszybz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keszybz/subscriptions","organizations_url":"https://api.github.com/users/keszybz/orgs","repos_url":"https://api.github.com/users/keszybz/repos","events_url":"https://api.github.com/users/keszybz/events{/privacy}","received_events_url":"https://api.github.com/users/keszybz/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T16:23:13Z","updated_at":"2015-12-25T16:23:13Z","body":"Some tests fail with:\r\n```\r\n[gw3] linux2 -- Python 2.7.10 /usr/bin/python\r\nfile /usr/lib64/python2.7/site-packages/numpy/testing/nosetester.py, line 318\r\n      def test(self, label='fast', verbose=1, extra_argv=None,\r\n        fixture 'self' not found\r\n        available fixtures: tmpdir_factory, pytestconfig, cache, recwarn, monkeypatch, record_xml_property, capfd, capsys, tmpdir\r\n        use 'py.test --fixtures [testpath]' for help on them.\r\n\r\n/usr/lib64/python2.7/site-packages/numpy/testing/nosetester.py:318\r\n```\r\nThis looks like py.test / nosetests incompatibility.\r\n\r\nBut there are also real test failures. They all seem to be related to mismatched array sizes:\r\n```\r\n____________________________ TestNDArrayTextEquality.test_get_item _____________________________\r\n[gw9] linux2 -- Python 2.7.10 /usr/bin/python\r\nself = <pymc3.tests.test_text_backend.TestNDArrayTextEquality testMethod=test_get_item>\r\n\r\n    def test_get_item(self):\r\n        for varname in self.test_point.keys():\r\n>           npt.assert_equal(self.mtrace0[varname], self.mtrace1[varname])\r\n\r\npymc3/tests/backend_fixtures.py:343: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n/usr/lib64/python2.7/site-packages/numpy/testing/utils.py:275: in assert_equal\r\n    return assert_array_equal(actual, desired, err_msg, verbose)\r\n/usr/lib64/python2.7/site-packages/numpy/testing/utils.py:739: in assert_array_equal\r\n    verbose=verbose, header='Arrays are not equal')\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n\r\ncomparison = <built-in function __eq__>\r\nx = array([  0,   1,   2,   3,   4,   0, 100, 200, 300, 400])\r\ny = array([  0,   1,   2,   3,   4,   0,   1,   2,   3,   4,   0, 100, 200,\r\n       300, 400,   0, 100, 200, 300, 400])\r\nerr_msg = '', verbose = True, header = 'Arrays are not equal', precision = 6\r\n\r\n    def assert_array_compare(comparison, x, y, err_msg='', verbose=True,\r\n                             header='', precision=6):\r\n        from numpy.core import array, isnan, isinf, any, all, inf\r\n        x = array(x, copy=False, subok=True)\r\n        y = array(y, copy=False, subok=True)\r\n    \r\n        def isnumber(x):\r\n            return x.dtype.char in '?bhilqpBHILQPefdgFDG'\r\n    \r\n        def chk_same_position(x_id, y_id, hasval='nan'):\r\n            \"\"\"Handling nan/inf: check that x and y have the nan/inf at the same\r\n            locations.\"\"\"\r\n            try:\r\n                assert_array_equal(x_id, y_id)\r\n            except AssertionError:\r\n                msg = build_err_msg([x, y],\r\n                                    err_msg + '\\nx and y %s location mismatch:' \\\r\n                                    % (hasval), verbose=verbose, header=header,\r\n                                    names=('x', 'y'), precision=precision)\r\n                raise AssertionError(msg)\r\n    \r\n        try:\r\n            cond = (x.shape==() or y.shape==()) or x.shape == y.shape\r\n            if not cond:\r\n                msg = build_err_msg([x, y],\r\n                                    err_msg\r\n                                    + '\\n(shapes %s, %s mismatch)' % (x.shape,\r\n                                                                      y.shape),\r\n                                    verbose=verbose, header=header,\r\n                                    names=('x', 'y'), precision=precision)\r\n                if not cond :\r\n>                   raise AssertionError(msg)\r\nE                   AssertionError: \r\nE                   Arrays are not equal\r\nE                   \r\nE                   (shapes (10,), (20,) mismatch)\r\nE                    x: array([  0,   1,   2,   3,   4,   0, 100, 200, 300, 400])\r\nE                    y: array([  0,   1,   2,   3,   4,   0,   1,   2,   3,   4,   0, 100, 200,\r\nE                          300, 400,   0, 100, 200, 300, 400])\r\n\r\n/usr/lib64/python2.7/site-packages/numpy/testing/utils.py:620: AssertionError\r\n```\r\n\r\n```\r\n======= 12 failed, 571 passed, 11 skipped, 3 error in 503.50 seconds =======\r\n```"}}