Ticket #17882: 17882-quick-n-dirty-patch.diff

File 17882-quick-n-dirty-patch.diff, 1.2 KB (added by Aymeric Augustin, 12 years ago)
  • tests/regressiontests/admin_filters/tests.py

     
    99from django.contrib.auth.admin import UserAdmin
    1010from django.contrib.auth.models import User
    1111from django.core.exceptions import ImproperlyConfigured
     12from django.db import connection
    1213from django.test import TestCase, RequestFactory
    1314from django.test.utils import override_settings
    1415from django.utils.encoding import force_unicode
     
    223224
    224225    @override_settings(USE_TZ=True)
    225226    def test_datefieldlistfilter_with_time_zone_support(self):
     227        # Close connection so it gets reopened in UTC
     228        connection.close()
    226229        # Regression for #17830
    227230        self.test_datefieldlistfilter()
    228231
     
    631634        choices = list(filterspec.choices(changelist))
    632635        self.assertEqual(choices[2]['display'], u'the 1990\'s')
    633636        self.assertEqual(choices[2]['selected'], True)
    634         self.assertEqual(choices[2]['query_string'], '?decade__isnull=the+90s')
    635  No newline at end of file
     637        self.assertEqual(choices[2]['query_string'], '?decade__isnull=the+90s')
Back to Top