10000 bpo-36778: fix test_startup_imports if default codepage is cp65001 by paulmon · Pull Request #13072 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-36778: fix test_startup_imports if default codepage is cp65001 #13072

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

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix merge
  • Loading branch information
Paul Monson committed May 7, 2019
commit 43d879b448625e51a274f5e8a398a4748c72e3cf
7 changes: 4 additions & 3 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ def test_startup_imports(self):

# http://bugs.python.org/issue9548
self.assertNotIn('locale', modules, stderr)
if sys.platform != 'darwin':
# http://bugs.python.org/issue19209
self.assertNotIn('copyreg', modules, stderr)

# http://bugs.python.org/issue19209
self.assertNotIn('copyreg', modules, stderr)

if sys.platform == 'win32' and locale.getpreferredencoding() == 'cp65001':
# https://bugs.python.org/issue36778
# If the default ansi codepage on Windows is 65001 (CP_UTF8)
Expand Down
0