[itemloader-errors] adapted compose test for the new error being returned by compose

#3836
This commit is contained in:
Mabel Villalba 2019-06-25 14:17:54 +02:00
parent ef56e34a4a
commit 99eb03a810
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ class ProcessorsTest(unittest.TestCase):
proc = Compose(str.upper)
self.assertEqual(proc(None), None)
proc = Compose(str.upper, stop_on_none=False)
self.assertRaises(TypeError, proc, None)
self.assertRaises(ValueError, proc, None)
def test_mapcompose(self):
filter_world = lambda x: None if x == 'world' else x