Skip to content

Commit 6c53ae1

Browse files
committed
Document test cases better
1 parent 96f6111 commit 6c53ae1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/tests/test_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ def test_typed_array():
838838
ob = Test.TypedArrayTest()
839839
ob.items["wrong"] = Spam("0")
840840

841-
# These cases fail
841+
# FIXME: These cases fail
842842
#with pytest.raises(TypeError):
843843
# ob = Test.TypedArrayTest()
844844
# _ = ob.items[0.5]
@@ -919,7 +919,7 @@ def test_multi_dimensional_array():
919919
ob = Test.MultiDimensionalArrayTest()
920920
ob.items["0", 0] = 0
921921

922-
# These cases fail
922+
# FIXME: These cases fail
923923
#with pytest.raises(TypeError):
924924
# ob = Test.MultiDimensionalArrayTest()
925925
# _ = ob.items[0.5, 0]

src/tests/test_generic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,8 @@ def test_generic_method_type_handling():
298298
from Python.Test import InterfaceTest, ISayHello1, ShortEnum
299299
import System
300300

301-
# FIXME: The value doesn't fit into Int64 and PythonNet doesn't
302-
# recognize it as UInt64 for unknown reasons.
303-
# assert_generic_method_by_type(System.UInt64, 18446744073709551615L)
301+
# FIXME: Fails because Converter.GetTypeByAlias returns int32 for any integer, including ulong
302+
# assert_generic_method_by_type(System.UInt64, 18446744073709551615)
304303
assert_generic_method_by_type(System.Boolean, True)
305304
assert_generic_method_by_type(bool, True)
306305
assert_generic_method_by_type(System.Byte, 255)

0 commit comments

Comments
 (0)