comparison to None|True|False should be 'if cond is None:'
This commit is contained in:
@ -18,5 +18,5 @@ def test_force_iterator_with_generator():
|
||||
yield 'ccc'
|
||||
|
||||
iterator = force_iterator(generator())
|
||||
assert type(iterator) == types.GeneratorType
|
||||
assert isinstance(iterator, types.GeneratorType)
|
||||
assert list(iterator) == ['aaa', 'bbb', 'ccc']
|
||||
|
||||
Reference in New Issue
Block a user