Skip to content

Commit 6e9cec4

Browse files
committed
Test for Half only on .NET
1 parent 4bd20db commit 6e9cec4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/suite/modules/type_related/test_ctypes.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import unittest
1414
from decimal import Decimal
1515

16-
from iptest import IronPythonTestCase, is_posix, is_cli, is_mono, big, myint, run_test
16+
from iptest import IronPythonTestCase, is_posix, is_cli, is_mono, is_netcoreapp, big, myint, run_test
1717

1818
class MyInt:
1919
def __init__(self, value):
@@ -322,7 +322,7 @@ def test_conversions_c_int(self):
322322
c_int_value.value = System.Single(42.6)
323323

324324
# System.Half not supported
325-
if is_cli:
325+
if is_netcoreapp:
326326
import System, clr
327327
half = clr.Convert(42.6, System.Half)
328328
self.assertRaises(TypeError, c_int, half)
@@ -420,6 +420,4 @@ def test_conversions_overflow(self):
420420
self.assertEqual(c_byte_value.value, -127)
421421

422422

423-
424-
425423
run_test(__name__)

0 commit comments

Comments
 (0)