From f684a9ed563020537000705c7eeb15aa02498d19 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 26 May 2011 18:58:31 -0500 Subject: [PATCH] expose Session on pytest namespace --- _pytest/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_pytest/main.py b/_pytest/main.py index 9769f4a2d..de61807ad 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -46,7 +46,8 @@ def pytest_addoption(parser): def pytest_namespace(): - return dict(collect=dict(Item=Item, Collector=Collector, File=File)) + collect = dict(Item=Item, Collector=Collector, File=File, Session=Session) + return dict(collect=collect) def pytest_configure(config): py.test.config = config # compatibiltiy