diff --git a/rollbar/test/test_fastapi.py b/rollbar/test/test_fastapi.py
index <HASH>..<HASH> 100644
--- a/rollbar/test/test_fastapi.py
+++ b/rollbar/test/test_fastapi.py
@@ -57,8 +57,7 @@ class FastAPIMiddlewareTest(BaseTest):
             args, kwargs = mock_report.call_args
             self.assertEqual(kwargs, {})
 
-            exc_info, request = args
-            exc_type, exc_value, exc_tb = exc_info
+            exc_type, exc_value, exc_tb = args[0]
 
             self.assertEqual(exc_type, ZeroDivisionError)
             self.assertIsInstance(exc_value, ZeroDivisionError)
diff --git a/rollbar/test/test_starlette.py b/rollbar/test/test_starlette.py
index <HASH>..<HASH> 100644
--- a/rollbar/test/test_starlette.py
+++ b/rollbar/test/test_starlette.py
@@ -59,8 +59,7 @@ class StarletteMiddlewareTest(BaseTest):
             args, kwargs = mock_report.call_args
             self.assertEqual(kwargs, {})
 
-            exc_info, request = args
-            exc_type, exc_value, exc_tb = exc_info
+            exc_type, exc_value, exc_tb = args[0]
 
             self.assertEqual(exc_type, ZeroDivisionError)
             self.assertIsInstance(exc_value, ZeroDivisionError)
Make tests more independent from the used handler