Skip to content

Commit

Permalink
Add Python 2.4 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwinton committed Nov 30, 2009
1 parent 58a285c commit 9630e0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions django_nose/runner.py
Expand Up @@ -19,6 +19,15 @@

from django_nose.plugin import ResultPlugin

try:
any
except NameError:
def any(iterable):
for element in iterable:
if element:
return True
return False


def run_tests(test_labels, verbosity=1, interactive=True, spatial_db=False):
"""Test runner that invokes nose."""
Expand Down

0 comments on commit 9630e0a

Please sign in to comment.