xonsh/tests/test_lib/test_itertools.py
Bob Hyman 26475146e2
Flake8 1 (#3550)
* flake8 fixes -- tests only

* fix ci failure

* integrate fix from is_3551 so tests will pass.

* Update tests/test_builtins.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-05-05 06:42:28 -04:00

13 lines
240 B
Python

from xonsh.lib.itertools import as_iterable
def test_single():
assert as_iterable(1) == (1,)
def test_list():
assert as_iterable([1, 2, 3]) == [1, 2, 3]
def test_string():
assert as_iterable("my string") == ("my string",)