Description: Fix incompatibility with Python 3.11 (Closes: #1023972)
 Thanks Simon McVittie for suggesting this fix.
Author: Andrius Merkys <merkys@debian.org>
Forwarded: https://gitlab.com/ase/ase/-/issues/1163
--- a/ase/test/db/test_db_web.py
+++ b/ase/test/db/test_db_web.py
@@ -7,28 +7,28 @@
 
 @pytest.fixture(scope='module')
 def database(tmp_path_factory):
-    with tmp_path_factory.mktemp('dbtest') as dbtest:
-        db = connect(dbtest / 'test.db', append=False)
-        x = [0, 1, 2]
-        t1 = [1, 2, 0]
-        t2 = [[2, 3], [1, 1], [1, 0]]
-
-        atoms = Atoms('H2O',
-                      [(0, 0, 0),
-                       (2, 0, 0),
-                       (1, 1, 0)])
-        atoms.center(vacuum=5)
-        atoms.set_pbc(True)
-
-        db.write(atoms,
-                 foo=42.0,
-                 bar='abc',
-                 data={'x': x,
-                       't1': t1,
-                       't2': t2})
-        db.write(atoms)
+    dbtest = tmp_path_factory.mktemp('dbtest')
+    db = connect(dbtest / 'test.db', append=False)
+    x = [0, 1, 2]
+    t1 = [1, 2, 0]
+    t2 = [[2, 3], [1, 1], [1, 0]]
+
+    atoms = Atoms('H2O',
+                  [(0, 0, 0),
+                   (2, 0, 0),
+                   (1, 1, 0)])
+    atoms.center(vacuum=5)
+    atoms.set_pbc(True)
+
+    db.write(atoms,
+             foo=42.0,
+             bar='abc',
+             data={'x': x,
+                   't1': t1,
+                   't2': t2})
+    db.write(atoms)
 
-        yield db
+    yield db
 
 
 def handle_query(args) -> str:
