mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 20:21:50 +08:00
ENH: Improve error message on bad return.
This commit is contained in:
@@ -153,7 +153,7 @@ class LabelArrayTestCase(ZiplineTestCase):
|
||||
lambda s: object(),
|
||||
]
|
||||
)
|
||||
def test_map_requires_f_to_return_a_string(self, f):
|
||||
def test_map_requires_f_to_return_a_string_or_none(self, f):
|
||||
la = LabelArray(self.strs, missing_value=None)
|
||||
|
||||
with self.assertRaises(TypeError):
|
||||
|
||||
Reference in New Issue
Block a user