summaryrefslogtreecommitdiff
path: root/pytest.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2007-08-29 11:32:14 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2007-08-29 11:32:14 +0200
commiteaa5bf093756d6872a79f9b7c05e90dc7bafa551 (patch)
tree3b7b6804b26185929ac82ab2e6d08ba334fe659d /pytest.py
parentdac0e1b119afe6bb24e8de05ec886049d99d8b43 (diff)
downloadlogilab-common-eaa5bf093756d6872a79f9b7c05e90dc7bafa551.tar.gz
do not crash when django is not installed
Diffstat (limited to 'pytest.py')
-rw-r--r--pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pytest.py b/pytest.py
index b0e52b0..3b237a6 100644
--- a/pytest.py
+++ b/pytest.py
@@ -515,7 +515,7 @@ def run():
cvg = Coverage([rootdir])
cvg.erase()
cvg.start()
- if options.django:
+ if DJANGO_FOUND and options.django:
tester = DjangoTester(cvg)
else:
tester = PyTester(cvg)