[svn r37465] * all Sessions now have fixoptions()
* added some tests for implied and conflicting options * make all Session objects inherit from the base session * small cleanups with respect to test setup * separate tests a bit --HG-- branch : trunk
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
import py
|
||||
|
||||
def setup_module(mod):
|
||||
mod.datadir = setupdatadir()
|
||||
mod.tmpdir = py.test.ensuretemp(mod.__name__)
|
||||
|
||||
def setupdatadir():
|
||||
datadir = py.test.ensuretemp("datadir")
|
||||
if not datadir.listdir():
|
||||
for name, content in namecontent:
|
||||
names = [x.basename for x in datadir.listdir()]
|
||||
for name, content in namecontent:
|
||||
if name not in names:
|
||||
datadir.join(name).write(content)
|
||||
return datadir
|
||||
|
||||
namecontent = [
|
||||
('syntax_error.py', "this is really not python\n"),
|
||||
|
||||
('disabled_module.py', py.code.Source('''
|
||||
disabled = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user