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 Win32UnicodeEnvironmentTests.test_encodableUnicodeEnvironment for Azure pipelines #1302

Merged
merged 10 commits into from
Aug 3, 2020
Prev Previous commit
Next Next commit
Set PYTHONUTF8 environment variable to force UTF-8 mode on Python 3.7+
on Windows

Set PYTHONIOENCODING variable to utf8 for Python 3.5, 3.6
  • Loading branch information
rodrigc committed Jul 19, 2020
commit 9ad444dbcb0b7a91e3997551633c7938115739e0
10 changes: 9 additions & 1 deletion azure-pipelines/windows_test_jobs.yml
Original file line number Diff line number Diff line change
@@ -11,13 +11,21 @@ parameters:
- select
- iocp


jobs:
- ${{ each pyver in parameters.pythonVersions }}:
- job: ${{ format('windows_{0}_{1}reactor', pyver.key, parameters.reactor) }}
displayName: ${{ format('Windows Py{0} {1}reactor', pyver.value, parameters.reactor) }}
pool:
vmImage: ${{ parameters.imageName }}
variables:
# Set PYTHONUTF8 environment variable to force UTF-8 mode on Python 3.7+
# on Windows.
#
# Set PYTHONIOENCODING to force UTF-8 encoding on Python 3.5 and Python 3.6.
# This allows people with non-ASCII characters in their names to file pull requests
# and not trigger CI errors.
PYTHONUTF8: 1
PYTHONIOENCODING: "utf-8:surrogateescape"
steps:
- template: 'run_test_steps.yml'
parameters: