From 6d947e8c3218c7137cd3fffecf1ca5b9274a20c6 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Fri, 18 Mar 2016 14:24:29 +0000 Subject: [PATCH] Refs #25415 -- Fixed/silenced check errors in Django's test suite. --- tests/runtests.py | 4 ++++ tests/test_runner/tests.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/runtests.py b/tests/runtests.py index 0dda1dbee6..dbd13e3d0f 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -163,6 +163,10 @@ def setup(verbosity, test_labels, parallel): # tests. log_config['loggers']['django']['level'] = 'ERROR' settings.LOGGING = log_config + settings.SILENCED_SYSTEM_CHECKS = [ + 'fields.W342', # ForeignKey(unique=True) -> OneToOneField + 'fields.W901', # CommaSeparatedIntegerField deprecated + ] warnings.filterwarnings( 'ignore', diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index 80ab0f38a5..d6e9af71a1 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -204,8 +204,6 @@ class Ticket17477RegressionTests(AdminScriptTestCase): class Sqlite3InMemoryTestDbs(TestCase): - available_apps = [] - @unittest.skipUnless(all(db.connections[conn].vendor == 'sqlite' for conn in db.connections), "This is an sqlite-specific issue") def test_transaction_support(self):