mirror of
https://github.com/django/django.git
synced 2025-03-13 19:00:45 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
10 lines
301 B
Python
10 lines
301 B
Python
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)
|