summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/django/utils/unittest/collector.py
blob: 0f76fc34041d8ce2946c2a60a5adcd2fb3dbedbd (plain)
1
2
3
4
5
6
7
8
9
import os
import sys
from django.utils.unittest.loader import defaultTestLoader

def collector():
    # import __main__ triggers code re-execution
    __main__ = sys.modules['__main__']
    setupDir = os.path.abspath(os.path.dirname(__main__.__file__))
    return defaultTestLoader.discover(setupDir)