def finalize(self, result=None):
if not self.settings_path:<EOL><INDENT>return<EOL><DEDENT>from django.test.utils import teardown_test_environment<EOL>from django.db import connection<EOL>from django.conf import settings<EOL>self.call_plugins_method('<STR_LIT>', settings, connection)<EOL>try:<EOL><INDENT>connection.creation.destroy_test_db(<EOL>self.old_db,<EOL>verbosity=self.verbosity,<EOL>)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>self.call_plugins_method('<STR_LIT>', settings, connection)<EOL>self.call_plugins_method(<EOL>'<STR_LIT>', settings, teardown_test_environment)<EOL>teardown_test_environment()<EOL>self.call_plugins_method('<STR_LIT>', settings)<EOL>
Clean up any created database and schema.