Skip to content

Commit bf066cc

Browse files
committed
rm
1 parent f1ea8f2 commit bf066cc

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

tests/test_typeconv.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -340,31 +340,6 @@ def test_to_python_java_integer_zero(self, mock_jvm: Mock) -> None:
340340

341341
assert result == 0
342342

343-
def test_to_python_unsupported_java_object(self, mock_jvm: Mock) -> None:
344-
"""Test converting unsupported Java object returns object unchanged."""
345-
java_object = 0x12345678
346-
mock_object_class = 0x87654321
347-
348-
mock_jvm.jni.GetObjectClass.return_value = mock_object_class
349-
mock_jvm._find_class.side_effect = [
350-
0x99999999, # String class (not a match)
351-
0x88888888, # Boolean class (not a match)
352-
0x77777777, # Integer class (not a match)
353-
]
354-
mock_jvm.jni.IsInstanceOf.side_effect = [
355-
False,
356-
False,
357-
False,
358-
] # Not any known type
359-
360-
result = to_python(mock_jvm, java_object)
361-
362-
assert result == java_object
363-
# Should not call any value extraction methods
364-
mock_jvm.jni.GetStringUTFChars.assert_not_called()
365-
mock_jvm.jni.CallBooleanMethod.assert_not_called()
366-
mock_jvm.jni.CallIntMethod.assert_not_called()
367-
368343

369344
class TestTypeConversionEdgeCases:
370345
"""Test edge cases and error conditions in type conversion."""

0 commit comments

Comments
 (0)