[Shtoom] regression on PowerPC

Zooko Wilcox-O'Hearn zooko at zooko.com
Wed Sep 29 14:38:16 CEST 2004


Looks like an endianess problem.

FAILURE: testMuLawCodec (shtoom.test.test_codecs.CodecTest)
------------------------------------------------------------------------ 
-------
Traceback (most recent call last):
   File "/Users/zooko/playground/twisted-svn/twisted/trial/unittest.py",  
line 240, in _runPhase
     stage(*args, **kwargs)
   File "/Users/zooko/playground/twisted-svn/twisted/trial/unittest.py",  
line 262, in _main
     self.runner(self.method)
   File "/Users/zooko/playground/twisted-svn/twisted/trial/runner.py",  
line 95, in runTest
     method()
   File  
"/Users/zooko/playground/shtoom-svn/Shtoom/shtoom/shtoom/test/ 
test_codecs.py", line 67, in testMuLawCodec
     ae(c.encode(instr).data, ulawout)
   File "/Users/zooko/playground/twisted-svn/twisted/trial/unittest.py",  
line 115, in failUnlessEqual
     raise FailTest, (msg or '%r != %r' % (first, second))
FailTest:  
'\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8 
f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x1 
0\xfb\x8f\x00
\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb 
\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00 
\x10\xfb\x8f\x00\x10\xf
b\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x0 
0\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xf 
b\x8f\x00\x10\xfb\x8f\x
00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\x 
fb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x00\x10\xfb\x8f\x 
00\x10' != '\x9f\x87\x0
7 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\x87\
x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\x8
7\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07 \x9f\x87\x07  
\x9f\x87\x07 \x9f\x87\x07 \x9f\
x87\x07 '
------------------------------------------------------------------------ 
-------
Ran 52 tests in 4.951s

FAILED (failures=1, skips=2)




More information about the Shtoom mailing list