RegexTest fails with python3.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mox3 |
New
|
Undecided
|
Unassigned |
Bug Description
RegexTest fails as follows with python3.6:
Traceback (most recent call last):
File "/var/tmp/
self.
File "/var/tmp/
self.regex = re.compile(pattern, flags=flags)
File "/usr/lib64/
return _compile(pattern, flags)
File "/usr/lib64/
p = sre_compile.
File "/usr/lib64/
p = sre_parse.parse(p, flags)
File "/usr/lib64/
p.pattern.flags = fix_flags(str, p.pattern.flags)
File "/usr/lib64/
raise ValueError("cannot use LOCALE flag with a str pattern")
ValueError: cannot use LOCALE flag with a str pattern
If flags=4 is changed to flags=8, then it fails like this:
Traceback (most recent call last):
File "mox3/tests/
repr(
File "/usr/lib64/
raise self.failureExc
AssertionError: False is not true
The attached patch fixes these problems.