diff --git a/test/compare.py b/test/compare.py
index 7758790..b93b2bf 100644
--- a/test/compare.py
+++ b/test/compare.py
@@ -71,7 +71,7 @@ def compareAlerts(simRes, pastAlerts):
 def runTests(path):
     print(separator)
     with open(path, 'r') as readLocation:
-        fileData = yaml.load(readLocation)
+        fileData = yaml.load(readLocation, Loader=yaml.Loader)
         print("Running tests for '" + fileData['name'] + "'")
         simRes = runSim(fileData['motor'])
         if 'real' in fileData['data'].keys():
@@ -96,7 +96,7 @@ if len(sys.argv) > 1:
         print("Filtering to category '" + filterCategory + "'")
 print(separator)
 with open('data/tests.yaml', 'r') as readLocation:
-    fileData = yaml.load(readLocation)
+    fileData = yaml.load(readLocation, Loader=yaml.Loader)
     for category in fileData.keys():
         if filterCategory is None or category == filterCategory:
             print("Running tests from category '" + category + "'")
