1

Resolved

Error trying to debug unit test

description

With the latest sources, this seems to happen about 10-20% of the time. I put a breakpoint in a test, select Debug Test and I get an unexpected error message in status bar which says look in the output window, and I see this in the output window:
------ Run test started ------
cd C:\Projects\GitHub\huguesv\azure-sdk-for-python\tests
set PYTHONPATH=C:\USERS\HUVALO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\12.0EXP\EXTENSIONS\MICROSOFT\PYTHON TOOLS FOR VISUAL STUDIO\2.1;C:\Projects\GitHub\huguesv\azure-sdk-for-python\tests;C:\Projects\GitHub\huguesv\azure-sdk-for-python;C:\Projects\GitHub\huguesv\azure-sdk-for-python\
C:\Python27_x64\python.exe "C:\USERS\HUVALO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\12.0EXP\EXTENSIONS\MICROSOFT\PYTHON TOOLS FOR VISUAL STUDIO\2.1\visualstudio_py_testlauncher.py" -m tests.test_servicebusservice -t ServiceBusTest.test_send_topic_message -s vwxkZnscpHalcc4cuwp3sZR9/Qhoy1ZR -p 59343
System.FormatException: The format of one argument does not meet the contract of the method.
   at EnvDTE90.Debugger3.GetProcesses(Transport pTransport, String TransportQualifier)
   at Microsoft.VisualStudioTools.VisualStudioApp.AttachToProcess(ProcessOutput proc, Guid portSupplier, String secret, Int32 port) in c:\Projects\DEVDIV\PTVS\Common\Product\TestAdapter\VisualStudioApp.cs:line 147
   at Microsoft.PythonTools.TestAdapter.TestExecutor.RunTestCase(VisualStudioApp app, IInterpreterOptionsService interpreterService, IFrameworkHandle frameworkHandle, IRunContext runContext, TestCase test, Dictionary`2 sourceToSettings) in c:\Projects\DEVDIV\PTVS\Python\Product\TestAdapter\TestExecutor.cs:line 203
   at Microsoft.PythonTools.TestAdapter.TestExecutor.RunTestCases(VisualStudioApp app, IInterpreterOptionsService interpreterService, IEnumerable`1 tests, IRunContext runContext, IFrameworkHandle frameworkHandle) in c:\Projects\DEVDIV\PTVS\Python\Product\TestAdapter\TestExecutor.cs:line 101
========== Run test finished: 0 run (0:00:03.1185634) ==========

comments