473,657 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

python2.4.2 test_fpformat and test_locale failed on IRIX6.5

Hello,

I am trying to install python2.4.2 on IRIX6.5, but test_fpformat and
test_locale failed when I ran "smake test".

The following is the detailed error message:

--------------------------------------------------------------------------------------------------------
prompt:\> ./python ./Lib/test/test_fpformat.p y
test_basic_case s (__main__.Fpfor matTest) ... ok
test_failing_va lues (__main__.Fpfor matTest) ... ok
test_reasonable _values (__main__.Fpfor matTest) ... FAIL

=============== =============== =============== =============== ==========
FAIL: test_reasonable _values (__main__.Fpfor matTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./Lib/test/test_fpformat.p y", line 51, in test_reasonable _values
self.checkFix(r ealVal, d)
File "./Lib/test/test_fpformat.p y", line 28, in checkFix
self.assertEqua ls(result, expected)
AssertionError: '-0' != '0'

----------------------------------------------------------------------
Ran 3 tests in 0.005s

FAILED (failures=1)
Traceback (most recent call last):
File "./Lib/test/test_fpformat.p y", line 75, in ?
test_main()
File "./Lib/test/test_fpformat.p y", line 71, in test_main
run_unittest(Fp formatTest)
File
"/user_data2/jfxiao/local/source/python/python-2.4.2/Python-2.4.2/Lib/test/test_support.py ",
line 290, in run_unittest
run_suite(suite , testclass)
File
"/user_data2/jfxiao/local/source/python/python-2.4.2/Python-2.4.2/Lib/test/test_support.py ",
line 275, in run_suite
raise TestFailed(err)
test.test_suppo rt.TestFailed: Traceback (most recent call last):
File "./Lib/test/test_fpformat.p y", line 51, in test_reasonable _values
self.checkFix(r ealVal, d)
File "./Lib/test/test_fpformat.p y", line 28, in checkFix
self.assertEqua ls(result, expected)
AssertionError: '-0' != '0'

prompt:\> ./python ./Lib/test/test_locale.py
'%f' % 1024 =? '1,024.000000' ... no
'%f' % 1024 == '1024.000000' != '1,024.000000'
'%f' % 102 =? '102.000000' ... yes
'%f' % -42 =? '-42.000000' ... yes
'%+f' % -42 =? '-42.000000' ... yes
'%20.f' % -42 =? ' -42' ... yes
'%+10.f' % -4200 =? ' -4,200' ... no
'%+10.f' % -4200 == ' -4200' != ' -4,200'
'%-10.f' % 4200 =? '4,200 ' ... no
'%-10.f' % 4200 == '4200 ' != '4,200 '
--------------------------------------------------------------------------------------------------------

Can someone tell me how to fix this ?

Thanks in advance.

Regrads,

xiaojf

Nov 24 '05 #1
0 1131

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6399
by: Markus Doering | last post by:
Hello, I just switched from 2.2 to Python 2.3. I am developing an XML/CGI interface to databases as a python package called "unitWrapper" containing several modules which ran fine under v2.2. Running Python2.3 under windows2000 I get import errors when a module imports another module of the same package with absolute package-names like this:
2
2201
by: Roger Erens | last post by:
Dear list, I'm trying to install python2.3.1 on an SCO-box. After running ./configure --prefix=/usrdir/rogere the output of make shows (among others:) running build running build_ext building 'struct' extension creating build
0
1714
by: Wolfgang | last post by:
I have a problem with linking my CPP Code under a irix6 machine (sgi, UNIX). In my CPP code I use some Functions which are written in Python. So its a kind of CPP wrapper for my Python functions In my Python Code I use threads to communicate over the network and stuff like this. Compilation and linking are working very well under Windows and Linux with the same code. Under the sgi, UNIX machine some errors occur and I don't no why....
0
1213
by: mahongquan | last post by:
when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, ,but when i copy the cmdline ,it can run without error,who can help me: ''''' running install running build running build_py running build_ext building '_sqlite' extension C:\PROGRA~1\MICROS~2\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX
0
843
by: skip | last post by:
We are getting a couple test failures at work when building Python 2.4.2 or the 2.4 Subversion branch on Solaris 8 and Solaris 10 (both on PC hardware). test_pty fails and test_locale is unexpectedly skipped. The locale environment is LC_ALL=C LC_CTYPE=iso_8859_1 I also tried test_locale with no LC_* environment variables set. Should my LC_* settings be different? Can anyone else confirm these problems?
0
884
by: Xiao Jianfeng | last post by:
Hello, I am trying to install python2.4.2 on a SGI origin3200 machine running IRIX6.5. The native c compiler was used to compile python. "./configure --prefix=/my/path/to/install" runs ok, then, "smake OPT= " runs ok but "smake test" gets errors, here is the output: ------------------------------------------------
15
5545
by: Christopher Taylor | last post by:
RHEL comes with Python2.3 installed. A program I need to install requires Python2.4 So I got Python2.4 from source and compiled it up. I configured it with --prefix=/usr --exec-prefix=/usr and --enable-unicode=ucs4 . I then make'd it and then make altinstall so that it didn't overwrite the /usr/bin/Python link to /usr/bin/Python2.3 . Well, for some reason, the arch dependent files did NOT get placed properly in...
0
1518
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for the large set of platforms on which Python can run. However, please also note that FreeBSD4 is a rather old version of that OS. FWIW: Python 2.6 compiles just fine on FreeBSD6. Thanks.
2
3101
by: Magdoll | last post by:
Has anyone run into the same problem I have? I used to run matplotlib with Python2.5 and everything worked fine. Now I use Python2.6, and everything falls apart. I installed numpy, libpng, and freetype as required by matplotlib, and the installation all went well. But when I try to plot even the simplest stuff, ex: plot()
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.