summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2008-01-23 11:22:17 +0100
committerSylvain <syt@logilab.fr>2008-01-23 11:22:17 +0100
commite7ad670b1475794380655f1e7e8a1d447ab58a75 (patch)
treed69f6242dc4117cef6520f517faa6e45d85ca9c7 /pytest.py
parent7310c56f9c834088c8af6cfbef4588da26de6599 (diff)
downloadlogilab-common-e7ad670b1475794380655f1e7e8a1d447ab58a75.tar.gz
we need '' in path anyway
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pytest.py b/pytest.py
index f0d3ebf..cf32b7d 100644
--- a/pytest.py
+++ b/pytest.py
@@ -511,6 +511,8 @@ def run():
sys.argv[1:] = newargs
covermode = getattr(options, 'coverage', None)
cvg = None
+ if not '' in sys.path:
+ sys.path.insert(0, '')
if covermode:
rootdir = project_root()
# control_import_coverage(rootdir)