summaryrefslogtreecommitdiff
path: root/tests/model_regress
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-11 20:56:26 +0100
committerClaude Paroz <claude@2xlibre.net>2015-01-11 20:59:07 +0100
commit412066e71e81e899bca63523f239e56138ec9e9d (patch)
treec5732a7524b96689e9e62e19bbd1cda6b641e56b /tests/model_regress
parent28de5cd4de3ddacf67af40c6b31d4fefd85f31f8 (diff)
downloaddjango-412066e71e81e899bca63523f239e56138ec9e9d.tar.gz
Revert "Marked a test as an expected failure on MySQL and Python 3.2."
This reverts commit 832b4a5722ba6b55e7b17c3bac6614ecca9aa88d. We officially don't support MySQL on Python 3.2. Refs #20380.
Diffstat (limited to 'tests/model_regress')
-rw-r--r--tests/model_regress/tests.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/model_regress/tests.py b/tests/model_regress/tests.py
index 057798c785..49ef6b98cd 100644
--- a/tests/model_regress/tests.py
+++ b/tests/model_regress/tests.py
@@ -2,14 +2,12 @@ from __future__ import unicode_literals
import datetime
from operator import attrgetter
-import sys
-import unittest
from django.core.exceptions import ValidationError
from django.test import TestCase, skipUnlessDBFeature
from django.utils import six
from django.utils.timezone import get_fixed_timezone
-from django.db import connection, router
+from django.db import router
from django.db.models.sql import InsertQuery
from .models import (Worker, Article, Party, Event, Department,
@@ -144,11 +142,6 @@ class ModelTests(TestCase):
attrgetter("when")
)
- if (3,) <= sys.version_info < (3, 3) and connection.vendor == 'mysql':
- # In Python < 3.3, datetime.strftime raises an exception for years
- # below 1000, and existing MySQL DB-API drivers hit this problem.
- test_date_lookup = unittest.expectedFailure(test_date_lookup)
-
def test_date_filter_null(self):
# Date filtering was failing with NULL date values in SQLite
# (regression test for #3501, among other things).