ENH: Improve error message on bad return.

This commit is contained in:
Scott Sanderson
2017-06-07 17:07:19 -04:00
parent 709735de51
commit 09cc54e08a
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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):