Test: Don't error on missing psutil

This commit is contained in:
Roger A. Light
2026-02-24 15:22:47 +00:00
parent e57342e7ac
commit d3ee5c5ca6
+5 -1
View File
@@ -3,7 +3,11 @@
# Test whether non-CONNECT packets as an initial packet can cause excess memory use
from mosq_test_helper import *
import psutil
try:
import psutil
except ModuleNotFoundError:
print("WARNING: Test not running due to missing psutil module")
exit(0)
def write_config(filename, port):
with open(filename, 'w') as f: