File tree Expand file tree Collapse file tree
instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import json
2929import os
3030import subprocess
31- import sys
3231import time
3332
3433import fsspec
@@ -298,11 +297,6 @@ def _ensure_casette_gzip(loaded_casette):
298297 )
299298
300299
301- def _maybe_ensure_casette_gzip (result ):
302- if sys .version_info [0 ] == 3 and sys .version_info [1 ] == 9 :
303- _ensure_casette_gzip (result )
304-
305-
306300class _PrettyPrintJSONBody :
307301 """This makes request and response body recordings more readable."""
308302
@@ -316,7 +310,7 @@ def serialize(cassette_dict):
316310 @staticmethod
317311 def deserialize (cassette_string ):
318312 result = yaml .load (cassette_string , Loader = yaml .Loader )
319- _maybe_ensure_casette_gzip (result )
313+ _ensure_casette_gzip (result )
320314 return result
321315
322316
You can’t perform that action at this time.
0 commit comments