Donate Share

ConfigObj

Tracker: Bugs

5 doctest fails with python 2.5 - ID: 1589815
Last Update: Settings changed ( teknico )

There are two errors when running the doctest with
Python 2.5:

**********************************************************************
File "configobj_test.py", line 433, in __main__._doctest
Failed example:
a.as_int('a')
Expected:
Traceback (most recent call last):
ValueError: invalid literal for int(): fish
Got:
Traceback (most recent call last):
File "C:\Python25\lib\doctest.py", line 1212, in
__run
compileflags, 1) in test.globs
File "<doctest __main__._doctest[90]>", line 1,
in <module>
a.as_int('a')
File
"U:\configobj-4.3.2\configobj-4.3.2\configobj.py", line
846, in as_int
return int(self[key])
ValueError: invalid literal for int() with base 10:
'fish'
******************************
File "configobj_test.py", line 440, in __main__._doctest
Failed example:
a.as_int('b')
Expected:
Traceback (most recent call last):
ValueError: invalid literal for int(): 3.2
Got:
Traceback (most recent call last):
File "C:\Python25\lib\doctest.py", line 1212, in
__run
compileflags, 1) in test.globs
File "<doctest __main__._doctest[94]>", line 1,
in <module>
a.as_int('b')
File
"U:\configobj-4.3.2\configobj-4.3.2\configobj.py", line
846, in as_int
return int(self[key])
ValueError: invalid literal for int() with base 10:
'3.2'
******************************


hmueller ( hannesmueller ) - 2006-11-03 10:21

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2006-12-17 11:25
Sender: teknicoProject Admin


Fixed in SVN, thank you.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
resolution_id None 2006-12-17 11:44 teknico
status_id Open 2006-12-17 11:25 teknico
close_date - 2006-12-17 11:25 teknico