diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-01 11:09:28 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-02 10:28:40 -0400 |
| commit | d28396f5268f1974ef1e84d13bcf1ac107005ced (patch) | |
| tree | 9a4d4dd7aaf3b59198813d5c4112caec22fb5d46 /tests | |
| parent | fb4f3e04b13681c5ec4cbf37d280ffebc887d620 (diff) | |
Fixed #23144 -- Dropped support for MySQL 5.0, 5.1.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/backends/tests.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index f217ea504a..a059c76b9d 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -259,30 +259,6 @@ class PostgreSQLTests(TestCase): self.assertIn('::text', do.lookup_cast(lookup)) -@unittest.skipUnless(connection.vendor == 'mysql', "Test only for MySQL") -class MySQLTests(TestCase): - - def test_autoincrement(self): - """ - Check that auto_increment fields are reset correctly by sql_flush(). - Before MySQL version 5.0.13 TRUNCATE did not do auto_increment reset. - Refs #16961. - """ - statements = connection.ops.sql_flush(no_style(), - tables=['test'], - sequences=[{ - 'table': 'test', - 'col': 'somecol', - }]) - found_reset = False - for sql in statements: - found_reset = found_reset or 'ALTER TABLE' in sql - if connection.mysql_version < (5, 0, 13): - self.assertTrue(found_reset) - else: - self.assertFalse(found_reset) - - class DateQuotingTest(TestCase): def test_django_date_trunc(self): |
