Commit 2376cb11 authored by Jason R. Coombs's avatar Jason R. Coombs

Slice the iterable rather than converting to a list and slicing that.

parent c2948e8c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment