@@ -182,9 +182,7 @@ def assert_nested_tensor_equal(nested_a, nested_b, msg=""):
182182 """Assert two nested (jagged) tensors are equal component-wise."""
183183 components_a = list (nested_a )
184184 components_b = list (nested_b )
185- assert len (components_a ) == len (components_b ), (
186- f"{ msg } Length mismatch: { len (components_a )} vs { len (components_b )} "
187- )
185+ assert len (components_a ) == len (components_b ), f"{ msg } Length mismatch: { len (components_a )} vs { len (components_b )} "
188186 for i , (a , b ) in enumerate (zip (components_a , components_b , strict = True )):
189187 assert torch .equal (a , b ), f"{ msg } Component { i } not equal: { a } vs { b } "
190188
@@ -529,7 +527,6 @@ def test_kv_batch_put_returns_cumulative_fields(self, controller, tq_api):
529527class TestKVGetE2E :
530528 """End-to-end tests for kv_batch_get functionality."""
531529
532-
533530 def test_kv_batch_get_nested_tensor (self , controller , tq_api ):
534531 partition_id = "test_partition"
535532 keys = []
@@ -548,7 +545,6 @@ def test_kv_batch_get_nested_tensor(self, controller, tq_api):
548545 assert_nested_tensor_equal (retrieved ["data" ], torch .nested .as_nested_tensor (data_list , layout = torch .jagged ))
549546 tq_api .kv_clear (keys = keys , partition_id = partition_id )
550547
551-
552548 def test_kv_batch_get_single_key (self , controller , tq_api ):
553549 """Test getting data for a single key."""
554550 partition_id = "test_partition"
0 commit comments