The py.test module offers setup/teardown hooks at the method, class and module level. The scenario you're describing would be covered at the module level. See the py.test documentation for more details: <http://codespeak.net/py/current/doc/test.html#managing-test-state-across-test-modules-classes-and-methods>
Grig ==== http://agiletesting.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list