Data files for tests

Ethan Furman ethan at stoneleaf.us
Wed Mar 30 15:35:22 EDT 2011


Steven D'Aprano wrote:
> I have a package with some tests. The tests are not part of the package 

Do you mean they are not importable, as in

--> from spam import tests

or they are not distributed?  Because it seems to me that distributing 
them would be worthwhile to at least some of the folks downloading your 
package (assuming you distribute it).

For myself, I do keep my tests in a folder in the package itself -- 
keeps it out of the way (any necessary files also go there).

~Ethan~



More information about the Python-list mailing list