[PEAK] trying to run peak-rules on python3

Hervé Coatanhay herve.coatanhay at gmail.com
Tue Mar 19 11:04:58 EDT 2013


Skipped content of type multipart/alternative-------------- next part --------------
F.
======================================================================
FAIL: Doctest: README.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stackless-3.2.2/lib/python3.2/doctest.py", line 2118, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for README.txt
  File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 0

----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 498, in README.txt
Failed example:
    dis(c.code())
Expected:
      0           0 LOAD_CONST               1 (1)
                  3 LOAD_CONST               2 (True)
                  6 LOAD_CONST               3 (1.0)
                  9 LOAD_CONST               4 (1)
Got:
      0           0 LOAD_CONST               1 (1) 
                  3 LOAD_CONST               2 (True) 
                  6 LOAD_CONST               3 (1.0) 
                  9 LOAD_CONST               1 (1) 
----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 1457, in README.txt
Failed example:
    dis(f4)
Expected:
      0           0 LOAD_FAST                1 (.1)
                  3 UNPACK_SEQUENCE          2
                  6 STORE_FAST               3 (b)
                  9 STORE_FAST               4 (c)
                 12 LOAD_FAST                2 (.2)
                 15 UNPACK_SEQUENCE          2
                 18 STORE_FAST               5 (d)
                 21 UNPACK_SEQUENCE          2
                 24 STORE_FAST               6 (e)
                 27 STORE_FAST               7 (f)
Got nothing
----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 1869, in README.txt
Failed example:
    dump(c.code())
Expected:
                    SETUP_EXCEPT            L1
                    LOAD_CONST               1 (1)
                    RETURN_VALUE
                    POP_BLOCK
                    JUMP_FORWARD            L4
            L1:     DUP_TOP
                    LOAD_CONST               2 (<class 'KeyError'>)
                    COMPARE_OP              10 (exception match)
                    JUMP_IF_FALSE           L2
                    POP_TOP
                    POP_TOP
                    POP_TOP
                    POP_TOP
                    LOAD_CONST               3 (2)
                    JUMP_FORWARD            L5
            L2:     POP_TOP
                    DUP_TOP
                    LOAD_CONST               4 (<class 'KeyError'>)
                    COMPARE_OP              10 (exception match)
                    JUMP_IF_FALSE           L3
                    POP_TOP
                    POP_TOP
                    POP_TOP
                    POP_TOP
                    LOAD_CONST               5 (3)
                    JUMP_FORWARD            L5
            L3:     POP_TOP
                    END_FINALLY
            L4:     LOAD_CONST               6 (4)
                    RETURN_VALUE
            L5:     RETURN_VALUE
Got:
                    SETUP_EXCEPT            L1 
                    LOAD_CONST               1 (1) 
                    RETURN_VALUE    
                    POP_BLOCK       
                    JUMP_FORWARD            L4 
            L1:     DUP_TOP         
                    LOAD_CONST               2 (<class 'KeyError'>) 
                    COMPARE_OP              10 (exception match) 
                    JUMP_IF_FALSE           L2 
                    POP_TOP
                    POP_TOP         
                    POP_TOP         
                    POP_TOP         
                    LOAD_CONST               3 (2) 
                    JUMP_FORWARD            L5 
            L2:     POP_TOP         
                    DUP_TOP         
                    LOAD_CONST               4 (<class 'TypeError'>) 
                    COMPARE_OP              10 (exception match) 
                    JUMP_IF_FALSE           L3 
                    POP_TOP
                    POP_TOP         
                    POP_TOP         
                    POP_TOP         
                    LOAD_CONST               5 (3) 
                    JUMP_FORWARD            L5 
            L3:     POP_TOP         
                    END_FINALLY     
            L4:     LOAD_CONST               6 (4) 
                    RETURN_VALUE    
            L5:     RETURN_VALUE    
----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 2850, in README.txt
Failed example:
    dis(c.code())
Expected:
      0           0 LOAD_CONST               1 (1)
                  3 LOAD_CONST               2 (2)
                  6 BUILD_TUPLE              2
                  9 UNPACK_SEQUENCE          2
                 12 DUP_TOPX                 2
                 15 LOAD_CONST               3 (3)
                 18 BUILD_LIST               5
                 21 UNPACK_SEQUENCE          5
                 24 BUILD_SLICE              3
                 27 BUILD_SLICE              3
Got:
      0           0 LOAD_CONST               1 (1) 
                  3 LOAD_CONST               2 (2) 
                  6 BUILD_TUPLE              2 
                  9 UNPACK_SEQUENCE          2 
                 12 DUP_TOP_TWO          
                 13 ROT_TWO              
                 14 STOP_CODE            
                 15 LOAD_CONST               3 (3) 
                 18 BUILD_LIST               5 
                 21 UNPACK_SEQUENCE          5 
                 24 BUILD_SLICE              3 
                 27 BUILD_SLICE              3 
----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 2952, in README.txt
Failed example:
    dis(c.code())
Expected:
      1           0 LOAD_FAST                0 (.0)
                  3 UNPACK_SEQUENCE          2
                  6 STORE_FAST               1 (x)
                  9 STORE_FAST               2 (y)
Got nothing
----------------------------------------------------------------------
File "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/BytecodeAssembler-0.6/README.txt", line 2960, in README.txt
Failed example:
    dis(c.code())
Expected:
      1           0 LOAD_FAST                1 (.1)
                  3 UNPACK_SEQUENCE          2
                  6 STORE_FAST               2 (y)
                  9 UNPACK_SEQUENCE          3
                 12 STORE_FAST               3 (z)
                 15 STORE_FAST               4 (a)
                 18 STORE_FAST               5 (b)
Got nothing


----------------------------------------------------------------------
Ran 2 tests in 0.360s

FAILED (failures=1)


More information about the PEAK mailing list