Fixed #20724 -- Test failure on SQLite.
This test failure happened if the connection's NAME was set to a file system path, and its TEST_NAME wasn't. Thanks Claude for the report.
This commit is contained in:
parent
38bc581bc0
commit
404870ee1f
|
@ -679,7 +679,7 @@ class RequestsTests(SimpleTestCase):
|
||||||
|
|
||||||
|
|
||||||
@skipIf(connection.vendor == 'sqlite'
|
@skipIf(connection.vendor == 'sqlite'
|
||||||
and connection.settings_dict['NAME'] in ('', ':memory:'),
|
and connection.settings_dict['TEST_NAME'] in (None, '', ':memory:'),
|
||||||
"Cannot establish two connections to an in-memory SQLite database.")
|
"Cannot establish two connections to an in-memory SQLite database.")
|
||||||
class DatabaseConnectionHandlingTests(TransactionTestCase):
|
class DatabaseConnectionHandlingTests(TransactionTestCase):
|
||||||
|
|
||||||
|
|
|
@ -191,10 +191,9 @@ class TestTransactionClosing(IgnoreDeprecationWarningsMixin, TransactionTestCase
|
||||||
"""
|
"""
|
||||||
self.test_failing_query_transaction_closed()
|
self.test_failing_query_transaction_closed()
|
||||||
|
|
||||||
@skipIf(connection.vendor == 'sqlite' and
|
@skipIf(connection.vendor == 'sqlite'
|
||||||
(connection.settings_dict['NAME'] == ':memory:' or
|
and connection.settings_dict['TEST_NAME'] in (None, '', ':memory:'),
|
||||||
not connection.settings_dict['NAME']),
|
"Cannot establish two connections to an in-memory SQLite database.")
|
||||||
'Test uses multiple connections, but in-memory sqlite does not support this')
|
|
||||||
class TestNewConnection(IgnoreDeprecationWarningsMixin, TransactionTestCase):
|
class TestNewConnection(IgnoreDeprecationWarningsMixin, TransactionTestCase):
|
||||||
"""
|
"""
|
||||||
Check that new connections don't have special behaviour.
|
Check that new connections don't have special behaviour.
|
||||||
|
|
Loading…
Reference in New Issue