]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Rename teardown() method to avoid PytestRemovedIn8Warning
authorGord Thompson <gord@gordthompson.com>
Wed, 25 Jan 2023 18:22:22 +0000 (11:22 -0700)
committerGord Thompson <gord@gordthompson.com>
Wed, 25 Jan 2023 18:22:22 +0000 (11:22 -0700)
pytest 7.2.1 issuing PytestRemovedIn8Warning

[method name] is using nose-specific method: `teardown(self)`
To remove this warning, rename it to `teardown_method(self)`

Change-Id: I0674aaec2fe174ec16bedba7d524bc20fce6d219

alembic/testing/suite/test_environment.py

index 6c1009ec0ce3a00bf6665fd999533e4ec827e568..8c86859ae2cff2b0497593dff6fc547a2487bbe3 100644 (file)
@@ -33,7 +33,7 @@ class MigrationTransactionTest(TestBase):
             )
         return self.context
 
-    def teardown(self):
+    def teardown_method(self):
         if self.conn:
             self.conn.close()