[Python-Dev] test_inspect.py still fails under -O

Tim Peters tim.one@home.com
Wed, 28 Feb 2001 17:12:47 -0500


> python  -O ../lib/test/test_inspect.py
Traceback (most recent call last):
  File "../lib/test/test_inspect.py", line 172, in ?
    'trace() row 1')
  File "../lib/test/test_inspect.py", line 70, in test
    raise TestFailed, message % args
test_support.TestFailed: trace() row 1

>

git.tr[0][1:] is

    ('@test', 8, 'spam',
     ['def spam(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):\n'],
     0)

at this point.  The test expects it to be

    ('@test', 9, 'spam',
     ['    eggs(b + d, c + f)\n'],
     0)

Test passes without -O.

This was on Windows.  Other platforms?