How do you do unittest?

Steven Taschuk staschuk at telusplanet.net
Fri Aug 1 17:09:22 EDT 2003


Quoth Will Stuyvesant:
  [...]
> PiaN did not mention the ugly sys.path.append('..') trick
> I had to use when following its advice.  I need to use it
> because mod.py is in the directory above the 'test'
> directory.
> 
> To run a test from the source directory I have to change
> to the 'test' directory and run test_mod.py there from the
> commandline.  [...]

Why not just stay in the directory containing mod.py and run
    python test/test_mod.py
?

-- 
Steven Taschuk                          staschuk at telusplanet.net
"Its force is immeasurable.  Even Computer cannot determine it."
                           -- _Space: 1999_ episode "Black Sun"





More information about the Python-list mailing list