diff --git a/django/test/simple.py b/django/test/simple.py
index bf0219d..70f61b6 100644
a
|
b
|
|
| 1 | import logging |
1 | 2 | import unittest as real_unittest |
2 | 3 | |
3 | 4 | from django.conf import settings |
… |
… |
class DjangoTestSuiteRunner(object):
|
365 | 366 | self.setup_test_environment() |
366 | 367 | suite = self.build_suite(test_labels, extra_tests) |
367 | 368 | old_config = self.setup_databases() |
| 369 | if self.verbosity > 0: |
| 370 | # Display DeprecationWarning on sys.stderr |
| 371 | logger = logging.getLogger('py.warnings') |
| 372 | handler = logging.StreamHandler() |
| 373 | logger.addHandler(handler) |
368 | 374 | result = self.run_suite(suite) |
| 375 | if self.verbosity > 0: |
| 376 | logger.removeHandler(handler) |
369 | 377 | self.teardown_databases(old_config) |
370 | 378 | self.teardown_test_environment() |
371 | 379 | return self.suite_result(suite, result) |