mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Fixed test_runner test failure on Python 3.5; refs #23763.
Python change is http://bugs.python.org/issue22032
This commit is contained in:
parent
1e219ac62f
commit
0386b97706
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
@ -82,9 +83,12 @@ class TestDebugSQL(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
|
|
||||||
verbose_expected_outputs = [
|
verbose_expected_outputs = [
|
||||||
'runTest (test_runner.test_debug_sql.FailingTest) ... FAIL',
|
# Output format changed in Python 3.5+
|
||||||
'runTest (test_runner.test_debug_sql.ErrorTest) ... ERROR',
|
x.format('' if sys.version_info < (3, 5) else 'TestDebugSQL.') for x in [
|
||||||
'runTest (test_runner.test_debug_sql.PassingTest) ... ok',
|
'runTest (test_runner.test_debug_sql.{}FailingTest) ... FAIL',
|
||||||
|
'runTest (test_runner.test_debug_sql.{}ErrorTest) ... ERROR',
|
||||||
|
'runTest (test_runner.test_debug_sql.{}PassingTest) ... ok',
|
||||||
|
]
|
||||||
]
|
]
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
verbose_expected_outputs += [
|
verbose_expected_outputs += [
|
||||||
|
Loading…
Reference in New Issue
Block a user