summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-07-22 02:59:28 -0600
committerbd <bdunahu@operationnull.com>2025-07-22 02:59:28 -0600
commit9cb17e4063b2710e0fbfde944e8a26b4a4ae38e4 (patch)
tree5287d055824d10e5f023418928acc1118b081939
parent28c0b35f731fc89c28458d47c2bf2aa64bd8a297 (diff)
Ensure yappi is installed before running the test suite
-rw-r--r--run_tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index 38fc6dc..ef9c2c2 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -1,4 +1,9 @@
#!/usr/bin/env python3
+try:
+ import yappi
+except ImportError:
+ print("yappi is required to run the tests. Aborting.")
+ exit(0)
import unittest
import sys