[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2019-10-24 Thread STINNER Victor


STINNER Victor  added the comment:

Yeah, that's a duplicate of bpo-29571 which has been fixed by:

New changeset 279657bac2856039ba422c18a3d7f227b455e9d6 by Victor Stinner in 
branch '3.7':
[3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)
https://github.com/python/cpython/commit/279657bac2856039ba422c18a3d7f227b455e9d6

Python 3.7.3 and newer include my fix.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
superseder:  -> test_re is failing when local is set for `en_IN`

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2019-10-24 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Looking at the traceback in the screenshot this seems to be same as issue29571 
happening on en_IN locale.

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2018-09-14 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Is it something specific to the environment? I tried the test on Ubuntu 16.04 
on both master and on v3.6.3 with no errors. Maybe if you can execute the 
following code based on which the test is executed then it will be helpful to 
debug this.


import locale

foo, enc = locale.getlocale(locale.LC_CTYPE)
# Search non-ASCII letter
for i in range(128, 256):
try:
c = bytes([i]).decode(enc)
sletter = c.lower()
if sletter == c: continue
bletter = sletter.encode(enc)
if len(bletter) != 1: continue
if bletter.decode(enc) != sletter: continue
bpat = re.escape(bytes([i]))
break
except (UnicodeError, TypeError):
pass
else:
bletter = None
bpat = b'A'
# Bytes patterns

print(bletter)
print(bpat)
print(foo)
print(enc)



Thanks

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32080] Re locale test fails after installing Python 3.6.3 on ubuntu 16.04

2017-11-24 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
components: +Installation, Library (Lib) -2to3 (2.x to 3.x conversion tool)
nosy: +serhiy.storchaka
title: Error Installing Python 3.6.3 on ubuntu 16.04 -> Re locale test fails 
after installing Python 3.6.3 on ubuntu 16.04
type: resource usage -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com