mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-24 17:44:08 +08:00
Test: Don't error on missing psutil
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user