mirror of
https://github.com/django/django.git
synced 2025-07-27 23:24:14 +00:00
Fixed a bunch of Python 2.3 test failures.
All remaining buildbot failures on 2.3 are not due to the test suite, as far as I can work out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d1ea8b2842
commit
c5a76a3669
3 changed files with 16 additions and 5 deletions
|
@ -6,6 +6,7 @@ and default settings.py files.
|
|||
import os
|
||||
import unittest
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from django import conf, bin, get_version
|
||||
from django.conf import settings
|
||||
|
@ -737,7 +738,10 @@ class CommandTypes(AdminScriptTestCase):
|
|||
"--help is handled as a special case"
|
||||
args = ['--help']
|
||||
out, err = self.run_manage(args)
|
||||
self.assertOutput(out, "Usage: manage.py [options]")
|
||||
if sys.version_info < (2, 4):
|
||||
self.assertOutput(out, "usage: manage.py [options]")
|
||||
else:
|
||||
self.assertOutput(out, "Usage: manage.py [options]")
|
||||
self.assertOutput(err, "Type 'manage.py help <subcommand>' for help on a specific subcommand.")
|
||||
|
||||
def test_specific_help(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue