You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
android: locale is modified by test_strftime #76320
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-11-29.15:31:36.249>created_at=<Date2017-11-26.10:44:43.349>labels= ['3.7', 'type-bug', 'tests']
title='android: locale is modified by test_strftime'updated_at=<Date2017-11-29.15:31:36.248>user='https://github.com/xdegaye'
It seems that the tests indeed modify the environment. To understand the above results one must be aware that the implementation of setlocale() is broken on Android:
generic_x86_64:/data/local/tmp/python $ python
Python 3.7.0a2+ (heads/bpo-30386:ebb493ac4e, Nov 25 2017, 18:58:20)
[Clang 3.8.275480 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from locale import setlocale, LC_TIME, LC_ALL
>>> setlocale(LC_TIME)
'C.UTF-8'
>>> setlocale(LC_ALL)
'C.UTF-8'
>>> setlocale(LC_TIME, 'C')
'C'
>>> setlocale(LC_TIME)
'C'
>>> setlocale(LC_ALL)
'C'
>>> setlocale(LC_TIME, 'C.UTF-8')
'C.UTF-8'
>>> setlocale(LC_ALL)
'C.UTF-8'
New changeset b0df786 by xdegaye (Miss Islington (bot)) in branch '3.6': bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (bpo-4635) b0df786
xdegaye commented on Nov 29, 2017
xdegayemannequin
MannequinAuthor
More actions
New changeset bc19cf5 by xdegaye (Miss Islington (bot)) in branch '2.7': bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (bpo-4636) bc19cf5
Activity
xdegaye commentedon Nov 26, 2017
Test results:
------------
1 test altered the execution environment:
test_strftime
It seems that the tests indeed modify the environment. To understand the above results one must be aware that the implementation of setlocale() is broken on Android:
xdegaye commentedon Nov 29, 2017
New changeset cc55e78 by xdegaye in branch 'master':
bpo-32139: test_strftime does not anymore modify the locale (GH-4569)
cc55e78
vstinner commentedon Nov 29, 2017
Python 3.6 and 2.7 are also affected and should be fixed. I requested automated backports.
xdegaye commentedon Nov 29, 2017
New changeset b0df786 by xdegaye (Miss Islington (bot)) in branch '3.6':
bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (bpo-4635)
b0df786
xdegaye commentedon Nov 29, 2017
New changeset bc19cf5 by xdegaye (Miss Islington (bot)) in branch '2.7':
bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (bpo-4636)
bc19cf5
xdegaye commentedon Nov 29, 2017
Closing now.
Thanks Victor :-)