diff --git a/tests/test_backup.py b/tests/test_backup.py
index 1ab42e25b34ad3e0e1bf424ff5e036acbd372e57..c94bc682ee65376d000d9fc84147e9ca9583d508 100755
--- a/tests/test_backup.py
+++ b/tests/test_backup.py
@@ -71,7 +71,7 @@ def check_local_backup(path):
     for d in os.listdir(path):
         subd = os.path.join(path, d)
         latest = os.path.join(subd, 'latest')
-        if os.exists(latest):
+        if os.path.exists(latest):
             mtime = os.path.getmtime(latest)
             d = datetime.fromtimestamp(mtime)
             now = datetime.now()