Data files for tests

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Mar 27 19:07:33 EDT 2011


I have a package with some tests. The tests are not part of the package 
itself, so I have a laid out my files like this:


src/
    spam/
        __init__.py
        other-files.py
    test_spam.py


Some of the tests depend on external data files. Where should I put them? 
In the same directory as test_spam?



-- 
Steven



More information about the Python-list mailing list