diff --git a/tests/storage/test_database.py b/tests/storage/test_database.py index 53b1d1c7cb..5a77c84962 100644 --- a/tests/storage/test_database.py +++ b/tests/storage/test_database.py @@ -23,7 +23,9 @@ def _stub_db_engine(**kwargs) -> BaseDatabaseEngine: # returns a DatabaseEngine, circumventing the abc mechanism # any kwargs are set as attributes on the class before instantiating it t = type( - "TestBaseDatabaseEngine", (BaseDatabaseEngine,), BaseDatabaseEngine.__dict__, + "TestBaseDatabaseEngine", + (BaseDatabaseEngine,), + dict(BaseDatabaseEngine.__dict__), ) # defeat the abc mechanism t.__abstractmethods__ = set()