#3 Python 2.4 changes doctest slightly

closed-accepted
nobody
None
5
2006-02-26
2004-12-09
No

The doctests that check errors in
tests/gmpy_test_rnd.py fail with Python 2.4, as the
'File ...' line between the 'Traceback' and '..Error:'
lines is not idented. While these pass for Pythons <
2.4, they don't in 2.4. This patch fixes that.

Note that one test still fails, as the error message
given by 2.4 is slightly different (that's the problem
with using doctest, I guess).

Discussion

  • David M. Cooke

    David M. Cooke - 2004-12-09

    fix doctests for Python 2.4

     
  • Alex Martelli

    Alex Martelli - 2006-02-26
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks