diff --git a/tests/test_resolver.py b/tests/test_resolver.py index 0ed35f22b..ccef5279c 100644 --- a/tests/test_resolver.py +++ b/tests/test_resolver.py @@ -10,7 +10,7 @@ from pex.common import safe_copy from pex.crawler import Crawler from pex.fetcher import Fetcher -# from pex.interpreter import PythonInterpreter +from pex.interpreter import PythonInterpreter from pex.package import EggPackage, SourcePackage from pex.resolvable import ResolvableRequirement from pex.resolver import Resolver, Unsatisfiable, _ResolvableSet, resolve, resolve_multi @@ -45,20 +45,20 @@ def test_simple_local_resolve(): dists = resolve(['project'], fetchers=fetchers) assert len(dists) == 1 -# -# def test_simple_local_resolve_multi(): -# project_sdist = make_sdist(name='project') -# interpreters = [PythonInterpreter.from_env('python2'), PythonInterpreter.from_env('python3')] -# platforms = ['linux-x86_64', 'macosx-10.11-x86_64'] -# -# with temporary_dir() as td: -# safe_copy(project_sdist, os.path.join(td, os.path.basename(project_sdist))) -# fetchers = [Fetcher([td])] -# dists = resolve_multi(['project'], -# fetchers=fetchers, -# interpreters=interpreters, -# platforms=platforms) -# assert len(list(dists)) == 4 + +def test_simple_local_resolve_multi(): + project_sdist = make_sdist(name='project') + interpreters = [PythonInterpreter.from_env('python2'), PythonInterpreter.from_env('python3')] + platforms = ['linux-x86_64', 'macosx-10.11-x86_64'] + + with temporary_dir() as td: + safe_copy(project_sdist, os.path.join(td, os.path.basename(project_sdist))) + fetchers = [Fetcher([td])] + dists = resolve_multi(['project'], + fetchers=fetchers, + interpreters=interpreters, + platforms=platforms) + assert len(list(dists)) == 4 # # # def test_platform_resolve_multi():