This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: FutureWarning when running regression tests
Type: Stage:
Components: None Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, complex, ncoghlan
Priority: normal Keywords:

Created on 2004-08-09 14:56 by complex, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg22031 - (view) Author: Viktor Ferenczi (complex) Date: 2004-08-09 14:56
Python: 2.4a2, windows installer (MSI)
OS: WinXP Prog ENG

Warning is raised when running regrtest.py:

C:\Python23\lib\test\test_format.py:19: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up
  result = formatstr % args
Traceback (most recent call last):
  File "C:\Python24\Lib\test\regrtest.py", line 1130, in ?
    main()
  File "C:\Python24\Lib\test\regrtest.py", line 359, in main
    e = _ExpectedSkips()
  File "C:\Python24\Lib\test\regrtest.py", line 1063, in __init__
    from test import test_codecmaps_cn, test_codecmaps_jp
ImportError: cannot import name test_codecmaps_cn
msg22032 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2004-08-11 08:14
Logged In: YES 
user_id=1038590

This is fixed in 2.4 CVS, as the test has been converted to
look for the new signed strings, and future warning is gone.
msg22033 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2004-08-11 08:21
Logged In: YES 
user_id=1038590

However, the output does suggest that the test execution is
picking up the old Python23 test files, instead of the
Python24 ones.

Are you sure you ran the correct version of the interpreter?
(Windows PATH problems can easily confuse this issue - *not*
putting Python on the path is a very good idea if you want
to run multiple installs)
msg22034 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-08-11 14:38
Logged In: YES 
user_id=11375

Closing as suggested by  ncoghlan.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40729
2004-08-09 14:56:19complexcreate