diff --git a/test/distutils/envoy.py b/test/distutils/envoy.py
index 56024873db21b4362456a7dfde7dfa3c3a1fd91b..3a6541566878a24ba65bae1fe56f6c6b932d78f0 100644
--- a/test/distutils/envoy.py
+++ b/test/distutils/envoy.py
@@ -168,7 +168,7 @@ def run(command, data=None, timeout=None, env=None):
     history = []
     for c in command:
 
-        if len(history):
+        if history:
             # due to broken pipe problems pass only first 10MB
             data = history[-1].std_out[0:10*1024]