P4DTI issue job000841

TitleTest suite warnings with Python 2.3
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionWhen running the P4DTI test suite under Python 2.3, two DeprecationWarning messages are generated.
run_tests.py:36: DeprecationWarning: Non-ASCII character '\xe0' in file /home/nb/info.ravenbrook.com/project/p4dti/version/2.1/test/test_translator.py on line 87, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
test_logger.py:66: DeprecationWarning: integer argument expected, got float
 return string.join(map(random_char, range(length)), '')
AnalysisThe first is to do with character set coding, and can be fixed by adding a magic comment to the head of the file to indicate that it is in ISO 8859-1. The second is because we are saying range(x) where x is a float. Convert the float to an int.
How foundautomated_test
EvidenceI just know.
Observed in2.1.1
Introduced in2.1.0
Created byNick Barnes
Created on2004-01-07 16:43:19
Last modified byNick Barnes
Last modified on2004-01-07 17:05:51
History2004-01-07 NB Created.

Fixes

Change Effect Date User Description
71876 closed 2004-01-07 17:01:23 Nick Barnes Fix deprecation warnings in test suite on Python 2.3.