Code

Ticket #18813: testmirror-sqlite.diff

File testmirror-sqlite.diff, 645 bytes (added by adsva, 20 months ago)
Line 
1diff --git a/django/test/simple.py b/django/test/simple.py
2index 0c6a21b..c5b4eee 100644
3--- a/django/test/simple.py
4+++ b/django/test/simple.py
5@@ -331,9 +331,7 @@ class DjangoTestSuiteRunner(object):
6 
7         for alias, mirror_alias in mirrored_aliases.items():
8             mirrors.append((alias, connections[alias].settings_dict['NAME']))
9-            connections[alias].settings_dict['NAME'] = (
10-                connections[mirror_alias].settings_dict['NAME'])
11-            connections[alias].features = connections[mirror_alias].features
12+            connections[alias] = connections[mirror_alias]
13 
14         return old_names, mirrors
15