[Python-Dev] failure in test_sre???

Mark Favas m.favas@per.dem.csiro.au
Sun, 03 Sep 2000 08:53:11 +0800


Is it just me, or is test_sre meant to fail, following the recent
changes to _sre.c?

Short failure message:
test test_sre failed -- Writing: 'sre.match("\\x%02x" % i, chr(i)) !=
None', expected: ''

Full failure messages:
Running tests on character literals
sre.match("\x%02x" % i, chr(i)) != None FAILED
Traceback (most recent call last):
  File "test_sre.py", line 18, in test
    r = eval(expression)
ValueError: invalid \x escape
sre.match("\x%02x0" % i, chr(i)+"0") != None FAILED
Traceback (most recent call last):
  File "test_sre.py", line 18, in test
    r = eval(expression)
ValueError: invalid \x escape
sre.match("\x%02xz" % i, chr(i)+"z") != None FAILED
Traceback (most recent call last):
  File "test_sre.py", line 18, in test
    r = eval(expression)
ValueError: invalid \x escape

(the above sequence is repeated another 7 times) 

-- 
Mark