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