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/pytest.py", line 5, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/cmdline.py", line 16, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/session.py", line 104, in main File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/session.py", line 99, in getinitialitems File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/config.py", line 158, in getfsnode File "/home/benjamin/pypy/pyjitpl5-simplify/py/test/collect.py", 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 'test_basic.py'>, <Module 'test_debug.py'>, <Module 'test_dict.py'>, <Module 'test_dlist.py'>, <Module 'test_exception.py'>, <Module 'test_jitprof.py'>, <Module 'test_list_optimize.py'>, <Module 'test_loop.py'>, <Module 'test_loop_dummy.py'>, <Module 'test_loop_spec.py'>, <Module 'test_oparser.py'>, <Module 'test_optimizefindnode.py'>, <Module 'test_optimizeopt.py'>, <Module 'test_recursive.py'>, <Module 'test_resume.py'>, <Module 'test_send.py'>, <Module 'test_slist.py'>, <Module 'test_specnode.py'>, <Module 'test_support.py'>, <Module 'test_tl.py'>, <Module 'test_tlc.py'>, <Module 'test_virtual.py'>, <Module 'test_virtualizable.py'>, <Module 'test_vlist.py'>, <Module 'test_warmspot.py'>, <Module 'test_zrpy_basic.py'>, <Module 'test_zrpy_exception.py'>, <Module 'test_zrpy_recursive.py'>, <Module 'test_zrpy_send.py'>, <Module 'test_zrpy_slist.py'>, <Module 'test_zrpy_virtualizable.py'>] }}}

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