From ed7325652375f046aad8119d74ecd2229090552a Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:15:57 +0200 Subject: [PATCH] Comment out assert (hanging integration tests) --- smart_open/smart_open_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_open/smart_open_lib.py b/smart_open/smart_open_lib.py index 03abecd4..bbb5864d 100644 --- a/smart_open/smart_open_lib.py +++ b/smart_open/smart_open_lib.py @@ -222,7 +222,7 @@ def open( raise NotImplementedError(ve.args[0]) binary = _open_binary_stream(uri, binary_mode, transport_params) - assert hasattr(binary, "name"), "missing 'name' attr (for INFER_FROM_EXTENSION)" + # assert hasattr(binary, "name"), "missing 'name' attr (for INFER_FROM_EXTENSION)" decompressed = so_compression.compression_wrapper(binary, binary_mode, compression) if 'b' not in mode or explicit_encoding is not None: