Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AzureCliCredential tests on Windows Python < 3.8 #10177

Merged
merged 2 commits into from Mar 9, 2020

Conversation

chlowell
Copy link
Contributor

@chlowell chlowell commented Mar 9, 2020

This ensures the event loop used by pytest-asyncio on Windows is ProactorEventLoop, which supports subprocesses (and is not the default loop for Python < 3.8). It also fixes a bug in the test of the async AzureCliCredential's fallback to the sync implementation when the configured event loop doesn't support subprocessing.

@chlowell chlowell added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Mar 9, 2020
@chlowell chlowell requested a review from schaabs as a code owner March 9, 2020 17:30
@chlowell chlowell self-assigned this Mar 9, 2020
@adxsdk6
Copy link

adxsdk6 commented Mar 9, 2020

Can one of the admins verify this patch?

@chlowell chlowell merged commit f82445f into Azure:master Mar 9, 2020
@chlowell chlowell deleted the test-fix branch March 9, 2020 21:49
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Mar 10, 2020
…into web_regeneration

* 'master' of https://github.com/Azure/azure-sdk-for-python: (36 commits)
  [Storage][ADLS] API updates (Azure#10170)
  [ADLS]Update AccessPolicy and ChangeLog (Azure#10208)
  Search docs updates (Azure#10207)
  Azure-mgmt-core (Azure#5399)
  [Storage][Blob]Regenerate Swagger Code (Azure#10203)
  [Event Hubs] Fix typing.Deque problem for Python 3.5.3 (Azure#10206)
  Simplify AzureCliCredential working directory (Azure#10185)
  [ADLS]API Review Comments (Azure#10194)
  Ignore ARM pipeline clients too (Azure#10204)
  Fix async AzureCliCredential tests on Windows (Azure#10177)
  update search user agent (Azure#10201)
  [Event Hubs] Correct a doc link (Azure#10196)
  Add facet results to search page iterator (Azure#10182)
  [ADLS][Samples]Add Samples for sync and async (Azure#10123)
  overload tracing decorator to preserve type info (Azure#9994)
  Fix to handle regression test when package is missing on PyPI (Azure#10180)
  [Synapse DataPlane]Update sample (Azure#9948)
  [Event Hubs] Update README link (Azure#10184)
  [textanalytics] Refactor exceptions to use azure-core ODataV4Format (Azure#9934)
  README links update in open telemetry (Azure#10176)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants