On Sunday, March 27, 2011 7:07:33 PM UTC-4, Steven D'Aprano wrote: > 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?
Including data files and accessing them via the resource management API: http://packages.python.org/distribute/setuptools.html#including-data-files -- http://mail.python.org/mailman/listinfo/python-list