Fix some test errors in extension manager caused by database changes.
Review Request #11976 — Created Jan. 22, 2022 and submitted
The extension manager tests were encountering a few errors caused by
changes to Django's database layer.
First, there were some errors coming from django-evolution using the
schema editor. The sqlite backend has been changed to error out if the
schema editor is invoked in the middle of an existing atomic
transaction, and django testcases are all run from within transactions.
To get around this, I've made it so the entire extension manager test
case disabled constraint checking.
allow_thread_sharingproperty was made read-only, and
changing it now requires using the
dec_thread_sharing()methods. These have been added where appropriate.
Ran unit tests.
I feel we want to wrap this all in a try/finally.
Revision 2 (+52 -24)
Checks run (2 succeeded)