[py-svn] r48698 - py/branch/reporter-merge/py/test
fijal at codespeak.net
fijal at codespeak.net
Thu Nov 15 01:31:43 CET 2007
Author: fijal
Date: Thu Nov 15 01:31:42 2007
New Revision: 48698
Modified:
py/branch/reporter-merge/py/test/session.py
Log:
Uh. 2.4 compatibility
Modified: py/branch/reporter-merge/py/test/session.py
==============================================================================
--- py/branch/reporter-merge/py/test/session.py (original)
+++ py/branch/reporter-merge/py/test/session.py Thu Nov 15 01:31:42 2007
@@ -16,6 +16,11 @@
and tells reporter about that
"""
+try:
+ GeneratorExit
+except NameError:
+ GeneratorExit = StopIteration # I think
+
def itemgen(session, colitems, reporter, keyword=None):
stopitems = py.test.collect.Item # XXX should be generator here as well
for next in colitems:
More information about the pytest-commit
mailing list