Skip to content

Commit a139d7b

Browse files
Uncomment some of the tests for converting option types to and from python
objects.
1 parent b6e64e7 commit a139d7b

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

dynd/nd/test/test_array_construct.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ def check_scalars(self, type, input_expected):
697697
self.assertEqual(nd.as_py(a), expected)
698698

699699
def test_scalar_option(self):
700-
# self.check_scalars('?bool', [(None, None),
701-
# ('', None),
702-
# ('NA', None),
703-
# (False, False),
704-
# ('true', True)])
700+
self.check_scalars('?bool', [(None, None),
701+
#('', None),
702+
#('NA', None),
703+
(False, False),
704+
('true', True)])
705705
self.check_scalars('?int', [(None, None), ('', None), ('NA', None), (-10, -10), ('12354', 12354)])
706706
self.check_scalars('?real', [(None, None),
707707
('', None),
@@ -710,10 +710,11 @@ def test_scalar_option(self):
710710
('12354', 12354),
711711
(1.25, 1.25),
712712
('125e20', 125e20)])
713-
# self.check_scalars('?string', [(None, None),
714-
# ('', ''),
715-
# ('NA', 'NA'),
716-
# (u'\uc548\ub155', u'\uc548\ub155')])
713+
#self.check_scalars('?string', [(None, None),
714+
# ('', ''),
715+
# ('NA', 'NA'),
716+
# (u'\uc548\ub155', u'\uc548\ub155')
717+
# ])
717718

718719
if __name__ == '__main__':
719720
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)