1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Merged recent changes from trunk.

This commit is contained in:
Russell Keith-Magee
2012-08-20 13:09:09 +08:00
940 changed files with 21954 additions and 15445 deletions

View File

@@ -1,12 +1,12 @@
import copy
import sys
from io import BytesIO
from django.core.management.validation import get_validation_errors
from django.db.models.loading import cache, load_app
from django.utils import unittest
from django.test.utils import override_settings
from django.utils import unittest
from django.utils.six import StringIO
class InvalidModelTestCase(unittest.TestCase):
@@ -17,7 +17,7 @@ class InvalidModelTestCase(unittest.TestCase):
# coloring attached (makes matching the results easier). We restore
# sys.stderr afterwards.
self.old_stdout = sys.stdout
self.stdout = BytesIO()
self.stdout = StringIO()
sys.stdout = self.stdout
# This test adds dummy applications to the app cache. These