{"action":"closed","issue":{"url":"https://api.github.com/repos/pypa/setuptools/issues/593","repository_url":"https://api.github.com/repos/pypa/setuptools","labels_url":"https://api.github.com/repos/pypa/setuptools/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/pypa/setuptools/issues/593/comments","events_url":"https://api.github.com/repos/pypa/setuptools/issues/593/events","html_url":"https://github.com/pypa/setuptools/issues/593","id":156165562,"number":593,"title":"Test failure in feature/msvc-discovery","user":{"login":"jaraco","id":308610,"avatar_url":"https://avatars.githubusercontent.com/u/308610?v=3","gravatar_id":"","url":"https://api.github.com/users/jaraco","html_url":"https://github.com/jaraco","followers_url":"https://api.github.com/users/jaraco/followers","following_url":"https://api.github.com/users/jaraco/following{/other_user}","gists_url":"https://api.github.com/users/jaraco/gists{/gist_id}","starred_url":"https://api.github.com/users/jaraco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaraco/subscriptions","organizations_url":"https://api.github.com/users/jaraco/orgs","repos_url":"https://api.github.com/users/jaraco/repos","events_url":"https://api.github.com/users/jaraco/events{/privacy}","received_events_url":"https://api.github.com/users/jaraco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-22T18:30:47Z","updated_at":"2016-07-02T17:05:11Z","closed_at":"2016-07-02T17:05:11Z","body":"I'm seeing this failure when running the tests on the latest feature/msvc-discovery branch:\r\n\r\n```\r\n============================= test session starts =============================\r\nplatform win32 -- Python 3.5.0, pytest-2.9.1, py-1.4.31, pluggy-0.3.1\r\nrootdir: C:\\Users\\jaraco\\Dropbox\\code\\main\\setuptools, inifile: pytest.ini\r\ncollected 159 items\r\n\r\nsetuptools\\tests\\test_msvc9compiler.py .F...\r\n\r\n================================== FAILURES ===================================\r\n________ TestModulePatch.test_no_registry_entryies_means_nothing_found ________\r\n\r\nself = <setuptools.tests.test_msvc9compiler.TestModulePatch object at 0x0000016EB17D7DA0>\r\n\r\n    def test_no_registry_entryies_means_nothing_found(self):\r\n        \"\"\"\r\n            No registry entries or environment variable should lead to an error\r\n            directing the user to download vcpython27.\r\n            \"\"\"\r\n        find_vcvarsall = distutils.msvc9compiler.find_vcvarsall\r\n        query_vcvarsall = distutils.msvc9compiler.query_vcvarsall\r\n\r\n        with contexts.environment(VS90COMNTOOLS=None):\r\n            with mock_reg():\r\n                assert find_vcvarsall(9.0) is None\r\n\r\n                expected = distutils.errors.DistutilsPlatformError\r\n                with pytest.raises(expected) as exc:\r\n>                   query_vcvarsall(9.0)\r\n\r\nsetuptools\\tests\\test_msvc9compiler.py:88:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\nsetuptools\\msvc9_support.py:176: in msvc9_query_vcvarsall\r\n    _augment_exception(exc, ver, arch)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nexc = DistutilsPlatformError('Microsoft Visual C++ directory not found',)\r\nversion = 9.0, arch = 'x86'\r\n\r\n    def _augment_exception(exc, version, arch=''):\r\n        \"\"\"\r\n        Add details to the exception message to help guide the user\r\n        as to what action will resolve it.\r\n        \"\"\"\r\n        # Error if MSVC++ directory not found or environment not set\r\n        message = exc.args[0]\r\n\r\n        if \"vcvarsall\" in message.lower() or \"visual c\" in message.lower():\r\n            # Special error message if MSVC++ not installed\r\n            message = 'Microsoft Visual C++ %0.1f is required (%s).' %\\\r\n                (version, message)\r\n            msdownload = r'www.microsoft.com/download/details.aspx?id=%d'\r\n            if version == 9.0:\r\n                if arch.lower().find('ia64') > -1:\r\n                    # For VC++ 9.0, if IA64 support is needed, redirect user\r\n                    # to Windows SDK 7.0\r\n                    message += ' Get it with \"Microsoft Windows SDK 7.0\": '\r\n                    message += msdownload % 3138\r\n                else:\r\n                    # For VC++ 9.0 redirect user to Vc++ for Python 2.7 :\r\n                    # This redirection link is maintained by Microsoft.\r\n                    # Contact vspython@microsoft.com if it needs updating.\r\n                    message += r' Get it from http://aka.ms/vcpython27'\r\n            elif version == 10.0:\r\n                # For VC++ 10.0 Redirect user to Windows SDK 7.1\r\n                message += ' Get it with \"Microsoft Windows SDK 7.1\": '\r\n                message += msdownload % 8279\r\n\r\n>       exc.args[0] = message\r\nE       TypeError: 'tuple' object does not support item assignment\r\n\r\nsetuptools\\msvc9_support.py:245: TypeError\r\n====================== 154 tests deselected by '-kmsvc9' ======================\r\n============= 1 failed, 4 passed, 154 deselected in 44.11 seconds =============\r\n```"}}
{"actor":{"display_login":"jaraco"}}