File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ import sys
12import unittest
23
34from django .db import connection
@@ -82,9 +83,12 @@ def test_output_verbose(self):
8283 ]
8384
8485 verbose_expected_outputs = [
85- 'runTest (test_runner.test_debug_sql.FailingTest) ... FAIL' ,
86- 'runTest (test_runner.test_debug_sql.ErrorTest) ... ERROR' ,
87- 'runTest (test_runner.test_debug_sql.PassingTest) ... ok' ,
86+ # Output format changed in Python 3.5+
87+ x .format ('' if sys .version_info < (3 , 5 ) else 'TestDebugSQL.' ) for x in [
88+ 'runTest (test_runner.test_debug_sql.{}FailingTest) ... FAIL' ,
89+ 'runTest (test_runner.test_debug_sql.{}ErrorTest) ... ERROR' ,
90+ 'runTest (test_runner.test_debug_sql.{}PassingTest) ... ok' ,
91+ ]
8892 ]
8993 if six .PY3 :
9094 verbose_expected_outputs += [
You can’t perform that action at this time.
0 commit comments