diff --git a/tests/test_partitions.py b/tests/test_partitions.py
index 20ed8fde56f2ff8adc3375ef82b26595bc48f759..acdb3b27a0efb893b19f306b7aeee10b7dab6656 100755
--- a/tests/test_partitions.py
+++ b/tests/test_partitions.py
@@ -88,6 +88,7 @@ warning = False
 def check_path(p):
     global error
     global warning
+    error = warning = False
 
     psize = None
     mount_point = p.get('mount_point')