Title | Test suite warnings with Python 2.3 |
Status | closed |
Priority | essential |
Assigned user | Nick Barnes |
Organization | Ravenbrook |
Description | When 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 detailstest_logger.py:66: DeprecationWarning: integer argument expected, got float return string.join(map(random_char, range(length)), '') |
Analysis | The 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 found | automated_test |
Evidence | I just know. |
Observed in | 2.1.1 |
Introduced in | 2.1.0 |
Created by | Nick Barnes |
Created on | 2004-01-07 16:43:19 |
Last modified by | Nick Barnes |
Last modified on | 2004-01-07 17:05:51 |
History | 2004-01-07 NB Created. |
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. |