{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1462","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1462/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1462/events","html_url":"https://github.com/pytest-dev/pytest/issues/1462","id":141938024,"number":1462,"title":"xdist test collection fails with *.pyc files present","user":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-18T18:02:32Z","updated_at":"2016-03-19T03:34:55Z","closed_at":null,"body":"pytest-xdist is failing with this error when I invoke it:\r\n\r\n```\r\n> py.test -n 2\r\n============================================================ test session starts ============================================================\r\nplatform linux2 -- Python 2.7.11, pytest-2.9.0, py-1.4.31, pluggy-0.3.1\r\nrootdir: /home/jgosmann/Documents/projects/nengo, inifile: setup.cfg\r\nplugins: xdist-1.14\r\ngw0 [0] / gw1 [0]s / 1 errors\r\nscheduling tests via LoadScheduling\r\n\r\n================================================================== ERRORS ===================================================================\r\n_____________________________________________________________ ERROR collecting  _____________________________________________________________\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/local.py:371: in check\r\n    return super(LocalPath, self).check(**kw)\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/common.py:190: in check\r\n    return self.Checkers(self)._evaluate(kw)\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/common.py:65: in _evaluate\r\n    if (not meth(value)) ^ invert:\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/common.py:42: in fnmatch\r\n    return self.path.fnmatch(arg)\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/common.py:209: in fnmatch\r\n    return FNMatcher(pattern)(self)\r\n../../../.virtualenvs/nengodev/lib/python2.7/site-packages/py/_path/common.py:388: in __call__\r\n    if (pattern.find(path.sep) == -1 and\r\nE   AttributeError: 'list' object has no attribute 'find'\r\n========================================================== 1 error in 0.59 seconds ==========================================================\r\n```\r\n\r\nIt works when I pass a single or multiple Python files as arguments, but not when I include `*.pyc` files. Without such arguments `*.pyc` files get generated automatically by python.\r\n\r\n#### `pip list` of the virtual environment you are using\r\n\r\n```\r\napipkg (1.4)\r\nastroid (1.4.4)\r\nbackports-abc (0.4)\r\nbackports.ssl-match-hostname (3.5.0.1)\r\ncertifi (2015.11.20.1)\r\ncloudpickle (0.1.1)\r\ncolorama (0.3.6)\r\nconfigparser (3.3.0.post2)\r\nctn-benchmark (0.0.0, /home/jgosmann/Documents/projects/ctn_benchmarks)\r\ncycler (0.10.0)\r\ndecorator (4.0.6)\r\ndoit (0.29.0)\r\nexecnet (1.4.1)\r\nflake8 (2.5.4)\r\nfunctools32 (3.2.3.post2)\r\nipykernel (4.2.2)\r\nipython (4.1.0rc2)\r\nipython-genutils (0.1.0)\r\nipywidgets (4.1.1)\r\nJinja2 (2.8)\r\njoblib (0.9.4)\r\njsonschema (2.5.1)\r\njupyter (1.0.0)\r\njupyter-client (4.1.1)\r\njupyter-console (4.1.0)\r\njupyter-core (4.0.6)\r\nlazy-object-proxy (1.2.1)\r\nlogilab-common (0.63.2)\r\nMarkupSafe (0.23)\r\nmatplotlib (1.5.1)\r\nmccabe (0.4.0)\r\nmistune (0.7.1)\r\nnbconvert (4.1.0)\r\nnbformat (4.0.1)\r\nnengo (2.1.0.dev0, /home/jgosmann/Documents/projects/nengo)\r\nnengo-gui (0.2.0.dev0)\r\nNEURON (7.4)\r\nnotebook (4.1.0)\r\nnumexpr (2.4.6)\r\nnumpy (1.10.4)\r\npandas (0.17.1)\r\npath.py (8.1.2)\r\npbr (1.8.1)\r\npep8 (1.7.0)\r\npexpect (4.0.1)\r\npickleshare (0.6)\r\npip (8.0.3)\r\npluggy (0.3.1)\r\npsyrun (0.1, /home/jgosmann/Documents/projects/psyrun)\r\nptyprocess (0.5)\r\npy (1.4.31)\r\npyflakes (1.0.0)\r\nPygments (2.1)\r\npygments-style-solarized (0.1.1)\r\npyinotify (0.9.6)\r\npylint (1.5.4)\r\npylint-venv (1.0)\r\npyparsing (2.1.0)\r\nPySide (1.2.4)\r\npytest (2.9.0)\r\npytest-xdist (1.14)\r\npython-dateutil (2.5.0)\r\npytz (2015.7)\r\npyzmq (15.2.0)\r\nqtconsole (4.1.1)\r\nrope (0.10.2)\r\nropemode (0.2)\r\nropevim (0.5.0)\r\nscipy (0.17.0)\r\nseaborn (0.7.0)\r\nselenium (2.52.0)\r\nsetuptools (19.6.2)\r\nsimplegeneric (0.8.1)\r\nsingledispatch (3.4.0.3)\r\nsix (1.10.0)\r\nstevedore (1.10.0)\r\ntables (3.2.2)\r\nterminado (0.6)\r\ntornado (4.3)\r\ntox (2.3.1)\r\ntraitlets (4.1.0)\r\nvirtualenv (14.0.5)\r\nvirtualenv-clone (0.2.6)\r\nvirtualenvwrapper (4.7.1)\r\nwheel (0.26.0)\r\nwrapt (1.10.6)\r\nYou are using pip version 8.0.3, however version 8.1.0 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\n```\r\n\r\n#### py.test and operating system versions\r\n\r\n```\r\nThis is pytest version 2.9.0, imported from /home/jgosmann/.pyenv/versions/2.7.11/lib/python2.7/site-packages/pytest.pyc\r\nsetuptools registered plugins:\r\n  pytest-xdist-1.14 at /home/jgosmann/.virtualenvs/nengodev/lib/python2.7/site-packages/xdist/boxed.pyc\r\n  pytest-xdist-1.14 at /home/jgosmann/.virtualenvs/nengodev/lib/python2.7/site-packages/xdist/looponfail.pyc\r\n  pytest-xdist-1.14 at /home/jgosmann/.virtualenvs/nengodev/lib/python2.7/site-packages/xdist/plugin.pyc\r\n```\r\n\r\nPython 2.7.11\r\n\r\nChakra Linux 4.2.6-1-CHAKRA\r\n\r\n#### Minimal example if possible\r\n\r\nFolder structure:\r\n```\r\nminimal/\r\n    tests/\r\n        __init__.py\r\n        test_test.py\r\n```\r\n\r\n`__init__.py` is empty\r\n`test_test.py` has the following content:\r\n\r\n```python\r\ndef test_test():\r\n    assert True\r\n```\r\n\r\nRun `py.test -n 2` in `minimal`.\r\n        \r\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/198626742","html_url":"https://github.com/pytest-dev/pytest/issues/1462#issuecomment-198626742","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1462","id":198626742,"user":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T03:34:55Z","updated_at":"2016-03-19T03:34:55Z","body":"It also seems that the traceback is incomplete. Is there a way to get a complete traceback?"}}