AssertionError using start wildcard

Create issue
Issue #27 resolved
Benjamin Peterson created an issue

This is the latest py-trunk:

{{{ $ py.test pypy/jit/metainterp/test/test_optimize* inserting into sys.path: /home/benjamin/pypy/pyjitpl5 Traceback (most recent call last): File "/temp/bin/py.test", line 3, in <module> py.cmdline.pytest() File "/home/benjamin/pypy/pyjitpl5-simplify/py/cmdline/", line 5, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/", line 16, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/", line 104, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/", line 99, in getinitialitems File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/", line 158, in getfsnode File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/", line 214, in _getfsnode AssertionError: Collector <Directory 'test'> does not provide local('/home/benjamin/pypy/pyjitpl5/pypy/jit/metainterp/test/test_optimize.pyc') colitem existing colitems are: [<Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>, <Module ''>] }}}

Comments (8)

  1. Holger Krekel repo owner
    • changed status to open

    Um, well you are telling py.test to try to test a "pyc" file - the error message is not very clear so is this issue about improving the error message or something else?

  2. Benjamin Peterson reporter

    I'm assuming that raising an AssertionError and quiting is not optimal behavior.

  3. Former user Account Deleted

    sure, i agree the error message / user feedback is bad. but why is quitting bad?

  4. Holger Krekel repo owner

    ok, i have fixed that, scheduled to be in the 1.0.1 bugfix release i plan for the coming week.

  5. Log in to comment