From 89814706bca6b13c7dcffdd548f0b29137dc157d Mon Sep 17 00:00:00 2001 From: pedronis Date: Sat, 13 Sep 2008 16:38:06 +0200 Subject: [PATCH] [svn r58111] make the tests runnable also under pypy --HG-- branch : trunk --- contrib/filelog/test/test_filelog.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/filelog/test/test_filelog.py b/contrib/filelog/test/test_filelog.py index 5e51003ff..b74859045 100644 --- a/contrib/filelog/test/test_filelog.py +++ b/contrib/filelog/test/test_filelog.py @@ -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