[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:
hpk
2007-01-28 14:25:03 +01:00
parent 15c1ebe506
commit 1d3519bfe0
8 changed files with 128 additions and 117 deletions

View File

@@ -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