diff --git a/tests/conftest.py b/tests/conftest.py
index af1a40c..e32e214 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -87,6 +87,7 @@ def _capture_internal_warnings():
 
     _warning_recorder_mgr.__exit__(None, None, None)
     recorder = _warning_recorder
+    return
 
     for warning in recorder:
         try:
