bpo-41043: Escape literal part of the path for glob(). (GH-20994)

diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py
index 1db3bef..571da97 100644
--- a/Lib/test/test_dbm.py
+++ b/Lib/test/test_dbm.py
@@ -33,7 +33,7 @@
 def delete_files():
     # we don't know the precise name the underlying database uses
     # so we use glob to locate all names
-    for f in glob.glob(_fname + "*"):
+    for f in glob.glob(glob.escape(_fname) + "*"):
         test.support.unlink(f)