Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
a823c6e8
Unverified
Commit
a823c6e8
authored
May 11, 2025
by
Emmanuel Ferdman
Committed by
GitHub
May 11, 2025
Browse files
Remove duplicate IO Struct test (#6180)
Signed-off-by:
Emmanuel Ferdman
<
emmanuelferdman@gmail.com
>
parent
2ce87935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
test/srt/test_io_struct.py
test/srt/test_io_struct.py
+0
-18
No files found.
test/srt/test_io_struct.py
View file @
a823c6e8
...
...
@@ -124,24 +124,6 @@ class TestGenerateReqInputNormalization(CustomTestCase):
# Ensure that text items are properly duplicated too
self
.
assertEqual
(
req
.
text
,
expected_text
)
def
test_list_of_lists_with_none_values
(
self
):
"""Test handling of list of lists with None values."""
req
=
copy
.
deepcopy
(
self
.
base_req
)
req
.
image_data
=
[
[
None
],
# None value
[
"image.jpg"
],
# Single image
]
req
.
normalize_batch_and_arguments
()
# Structure should remain the same
self
.
assertEqual
(
len
(
req
.
image_data
),
2
)
self
.
assertEqual
(
len
(
req
.
image_data
[
0
]),
1
)
self
.
assertEqual
(
len
(
req
.
image_data
[
1
]),
1
)
# Check modalities
self
.
assertEqual
(
req
.
modalities
,
[
None
,
"image"
])
def
test_specific_parallel_n_per_sample
(
self
):
"""Test parallel expansion when different samples have different n values."""
req
=
copy
.
deepcopy
(
self
.
base_req
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment