[svn r37264] create the new development trunk

--HG--
branch : trunk
This commit is contained in:
hpk
2007-01-24 15:24:01 +01:00
commit 5992a8ef21
435 changed files with 58640 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import py
from py.__.test.tkinter import backend
ReportBackend = backend.ReportBackend
datadir = py.magic.autopath().dirpath('data')
def test_capture_out_err():
config = py.test.config._reparse([datadir/'filetest.py'])
backend = ReportBackend()
backend.start_tests(config = config,
args = config.remaining,
tests = [])
while backend.running:
backend.update()
backend.update()
store = backend.get_store()
assert len(store.get(failed = True)) == 1
failed = store.get(failed = True)[0]
assert failed.stdout == 'STDOUT'
assert failed.stderr == 'STDERR'