Forever-Young/mrab-regex-hg

FAIL: test_case_folding (__main__.RegexTests) with py2.7 & 2014-01-10 version

GoogleCodeExporter opened this issue · 5 comments

Hello,
when running the unittests on a Debian sid machine with python2.7 and latest 
release of regex I got this error:


FAIL: test_case_folding (__main__.RegexTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Python2/test_regex.py", line 713, in test_case_folding
    u"word23"])
AssertionError: Lists differ: [u'word2', u'word3', u'word234... != [u'word234', 
u'word23']

First differing element 0:
word2
word234

First list contains 2 additional elements.
First extra element 2:
word234

- [u'word2', u'word3', u'word234', u'word23']
+ [u'word234', u'word23']

----------------------------------------------------------------------
Ran 94 tests in 0.366s

FAILED (failures=1)
Traceback (most recent call last):
  File "Python2/test_regex.py", line 3165, in <module>
    test_main()
  File "Python2/test_regex.py", line 3162, in test_main
    run_unittest(RegexTests)
  File "/usr/lib/python2.7/test/test_support.py", line 1211, in run_unittest
    _run_suite(suite)
  File "/usr/lib/python2.7/test/test_support.py", line 1194, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "Python2/test_regex.py", line 713, in test_case_folding
    u"word23"])
AssertionError: Lists differ: [u'word2', u'word3', u'word234... != [u'word234', 
u'word23']

First differing element 0:
word2
word234

First list contains 2 additional elements.
First extra element 2:
word234

- [u'word2', u'word3', u'word234', u'word23']
+ [u'word234', u'word23']

Original issue reported on code.google.com by sandro.tosi on 18 Jan 2014 at 6:09

I'm on AMD64, so 64-bit little-endian

Original comment by sandro.tosi on 18 Jan 2014 at 7:54

  • Added labels: ****
  • Removed labels: ****
I've managed to reproduce the problem, but I'm puzzled as to why it's failing 
when it succeeds for Python 3.3 and the relevant code for matching is the same 
across both versions!

Original comment by re...@mrabarnett.plus.com on 18 Jan 2014 at 9:23

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****
Is it 32-bit or 64-bit? Little-endian or big-endian?

Original comment by re...@mrabarnett.plus.com on 18 Jan 2014 at 6:43

  • Added labels: ****
  • Removed labels: ****
It's a 'heisenbug': any attempt to debug makes it disappear. This could take a 
while... :-(

Original comment by re...@mrabarnett.plus.com on 19 Jan 2014 at 2:35

  • Added labels: ****
  • Removed labels: ****
Fixed in regex-2014.01.20.

Original comment by re...@mrabarnett.plus.com on 20 Jan 2014 at 3:43

  • Changed state: Done
  • Added labels: ****
  • Removed labels: ****