diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-02-27 00:01:43 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-02-27 00:01:43 +0000 |
| commit | 5e34ce97df3563883f1c0035e2150f90fe78ed30 (patch) | |
| tree | 031ae632d44f6b7f72c4cd0200defde2b7d4cee7 /tests | |
| parent | 6df023007781e96fa1cfa8dfce0040cc9d7da871 (diff) | |
newforms-admin: Merged to [4629]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index b21a3536ac..a111ef1436 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -148,5 +148,7 @@ if __name__ == "__main__": options, args = parser.parse_args() if options.settings: os.environ['DJANGO_SETTINGS_MODULE'] = options.settings - + elif "DJANGO_SETTINGS_MODULE" not in os.environ: + parser.error("DJANGO_SETTINGS_MODULE is not set in the environment. " + "Set it or use --settings.") django_tests(int(options.verbosity), args) |
