diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:37:52 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-30 10:37:52 -0500 |
commit | 2376cb11cd1383622c97e52006ccabf12c78fffe (patch) | |
tree | e6541ba1d0448d7400bf9b3d3b3d44025d70ffe2 /setuptools/tests/test_easy_install.py | |
parent | c2948e8c76a2778371b779d56682ec61d48dfbc3 (diff) | |
download | external_python_setuptools-2376cb11cd1383622c97e52006ccabf12c78fffe.tar.gz external_python_setuptools-2376cb11cd1383622c97e52006ccabf12c78fffe.tar.bz2 external_python_setuptools-2376cb11cd1383622c97e52006ccabf12c78fffe.zip |
Slice the iterable rather than converting to a list and slicing that.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index ca943948..053b6971 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -10,6 +10,7 @@ import contextlib import textwrap import tarfile import logging +import itertools import pytest @@ -82,7 +83,8 @@ class TestEasyInstallTest(unittest.TestCase): old_platform = sys.platform try: - name, script = [i for i in next(get_script_args(dist))][0:2] + args = next(get_script_args(dist)) + name, script = itertools.islice(args, 2) finally: sys.platform = old_platform |