Files
pytest2/testing/rest/setup.py
holger krekel c8119d89b6 move test files out of py lib proper
* separate all tests from plugins
* simplify implicit inclusion of plugins under test
* have test_initpkg perform direct checks instead of yielding tests
* fix example tests for 3k

--HG--
branch : trunk
2009-09-06 16:59:39 +02:00

12 lines
267 B
Python

import py
rootdir = py.path.local(__file__).dirpath()
mydatadir = py.path.local(__file__).dirpath('data')
def getdata():
rel = mydatadir.relto(rootdir)
tmpdir = py.test.ensuretemp(rel.replace(rootdir.sep, '_'))
mydatadir.copy(tmpdir)
return tmpdir