[py-svn] r58111 - py/trunk/contrib/filelog/test
pedronis at codespeak.net
pedronis at codespeak.net
Sat Sep 13 16:38:06 CEST 2008
Author: pedronis
Date: Sat Sep 13 16:38:06 2008
New Revision: 58111
Modified:
py/trunk/contrib/filelog/test/test_filelog.py
Log:
make the tests runnable also under pypy
Modified: py/trunk/contrib/filelog/test/test_filelog.py
==============================================================================
--- py/trunk/contrib/filelog/test/test_filelog.py (original)
+++ py/trunk/contrib/filelog/test/test_filelog.py Sat Sep 13 16:38:06 2008
@@ -1,7 +1,11 @@
import py
-from filelog import session
-
+try:
+ from filelog import session
+except ImportError:
+ # convenience, make these tests runnable where fielog lives under pypy
+ from pypy.tool.pytest.filelog import session
+
import os, StringIO
from py.__.test.collect import Node, Item, FSCollector
More information about the pytest-commit
mailing list