[svn r54623] A test for 54622

Fix for running tests

--HG--
branch : trunk
This commit is contained in:
fijal
2008-05-10 15:55:22 +02:00
parent 6e99225320
commit 4fce886def
3 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ def itemgen(session, colitems, reporter, keyword=None):
if isinstance(next, stopitems):
try:
next._skipbykeyword(keyword)
if session.config.option.keyword_oneshot:
if session and session.config.option.keyword_oneshot:
keyword = None
yield next
except Skipped: