Changeset 126

Show
Ignore:
Timestamp:
Sun Nov 19 19:03:27 2006
Author:
jpellerin
Message:

[new_loader] Added items to notes about test proxying and how to make module isolation work under depth-first loading/breadth-first running.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/new_loader/notes

    r116 r126  
    39 39  
    40 40  
    41    
      41 *  
    41 41 proxy suite may need to be mixed in by the collector when running under test  
      42 or, suite base class has a testProxy property, which if not None is called to  
      43 proxy the test  
      44  
      45 *  
      46 module isolation plugin will break under depth-first loading. how to restore  
      47 it:  
      48  
      49 preImport hook  
      50  - snapshot sys.modules: this is what to restore AFTER processing of the  
      51    test module is complete  
      52 postImport hook  
      53  - snapshot sys.modules: this is what to restore BEFORE running module tests  
      54 startTest  
      55  - if isa module, restore postImport sys.modules snapshot  
      56 stopTest  
      57  - if isa module, restore preImport sys.modules snapshot  
      58