From c2822f58fb00560cc2aa7429dcf45a9ed2d3c347 Mon Sep 17 00:00:00 2001 From: aryan7081 Date: Sat, 20 Sep 2025 15:56:28 +0530 Subject: [PATCH] Added skipUnless decorator in tests/backends/sqlite/test_parallel.py and reverted unrelated changes --- django/db/backends/sqlite3/creation.py | 4 ++-- tests/backends/sqlite/test_parallel.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/django/db/backends/sqlite3/creation.py b/django/db/backends/sqlite3/creation.py index ec71ff0cce..dcf3430f61 100644 --- a/django/db/backends/sqlite3/creation.py +++ b/django/db/backends/sqlite3/creation.py @@ -88,8 +88,8 @@ class DatabaseCreation(BaseDatabaseCreation): "NAME": f"{self.connection.alias}_{suffix}.sqlite3", } raise NotSupportedError( - f"Cloning with start method {start_method!r} is not supported." - ) + f"Cloning with start method {start_method!r} is not supported." + ) def _clone_test_db(self, suffix, verbosity, keepdb=False): source_database_name = self.connection.settings_dict["NAME"] diff --git a/tests/backends/sqlite/test_parallel.py b/tests/backends/sqlite/test_parallel.py index 61eb094857..bd00c143e7 100644 --- a/tests/backends/sqlite/test_parallel.py +++ b/tests/backends/sqlite/test_parallel.py @@ -1,11 +1,13 @@ import shutil import tempfile +import unittest from pathlib import Path -from django.db import connections +from django.db import connection, connections from django.test import TestCase +@unittest.skipUnless(connection.vendor == "sqlite", "SQLite tests") class SQLiteParallelCloneTests(TestCase): """ Tests that cloned SQLite test databases respect the original