diff options
author | Gord Thompson <gord@gordthompson.com> | 2023-01-25 11:22:22 -0700 |
---|---|---|
committer | Gord Thompson <gord@gordthompson.com> | 2023-01-25 11:22:22 -0700 |
commit | 08266a49db1ce69224e62fa89f34f03a2f0f9529 (patch) | |
tree | 5088b7b3ce653858651901ddaa4e8939a7a401d3 /alembic | |
parent | f7f325caf87ae115c8fef2e3da365c0bcb40b605 (diff) | |
download | alembic-08266a49db1ce69224e62fa89f34f03a2f0f9529.tar.gz |
Rename teardown() method to avoid PytestRemovedIn8Warning
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
Diffstat (limited to 'alembic')
-rw-r--r-- | alembic/testing/suite/test_environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/testing/suite/test_environment.py b/alembic/testing/suite/test_environment.py index 6c1009e..8c86859 100644 --- a/alembic/testing/suite/test_environment.py +++ b/alembic/testing/suite/test_environment.py @@ -33,7 +33,7 @@ class MigrationTransactionTest(TestBase): ) return self.context - def teardown(self): + def teardown_method(self): if self.conn: self.conn.close() |