Tue Aug 8 09:22:55 2006

Ticket #81 (Closed: fixed)

/lib -style package organization broken


Priority: normal Reporter: jpellerin
Severity: normal Assigned to: jpellerin
Component: nose Status: closed
Version: 0.9.1 Resolution: fixed
Milestone: 0.9.1 Keywords: defect

Description by jpellerin:

When a package is organized like:

 /lib
    module.py
 /tests
    test_module.py

nose loads test_module but even though it has already seen lib, it has failed to put it on sys.path, unless a plugin has asked to load all modules.

Possible solution: when addPaths is on, always add the surrounding directory of any .py file we see.

Changelog

Thu Aug 24 21:12:00 2006: Modified by jpellerin

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

Fixed in [93]