Wed Jul 19 14:50:46 2006

Ticket #74 (Closed: fixed)

Possible bug in subpackage_of


Priority: normal Reporter: constant.beta@gmail.com
Severity: normal Assigned to: jpellerin
Component: nose:selector Status: closed
Version: 0.9 Resolution: fixed
Milestone: 0.9.1 Keywords:  

Description by constant.beta@gmail.com:

I was using 0.9b2 earlier without problems, but after upgrade to 0.9 "python setup.py test" command doesn't work anymore. My directory structure is (full avaiable here: http://pycheesecake.org/browser/branches/mk):

cheesecake/
...
README
setup.py
tests/
    unit/
    functional/
    data/

Running "nosetests --with-doctest --doctest-tests --include unit --verbose" runs all of the tests in "tests/unit" along with doctests found in package code. But using nose.collector by setup.py script runs only one doctest from the "tests/unit/" directory (so it omits all unit tests and doctests in project directory "cheesecake/"). Our setup.py config is avaiable here: http://pycheesecake.org/browser/branches/mk/setup.py .

By browsing through the diff of 0.9b->0.9.0 I've found out that part of code that makes a difference is inside new subpackage_of() function. If you omit comparisons of "mod_parts" and "pkg_parts" (lines 369-379) nose.collector works just like in 0.9b running all of my unit and doc tests.

Changelog

Fri Jul 21 09:42:21 2006: Modified by jpellerin

  • milestone set to 0.9.1
  • status changed from new to assigned

Fri Jul 21 11:01:08 2006: Modified by jpellerin

  • resolution set to fixed
  • status changed from assigned to closed

Fixed on trunk.