Beispiel #1
0
 def test_postparse_new(self):
     real_loops = [
         FinalBlock(
             "debug_merge_point(0, 0, '<code object _optimize_charset. file '/usr/local/Cellar/pypy/2.0-beta2/lib-python/2.7/sre_compile.py'. line 207> #351 LOAD_FAST')",
             None)
     ]
     postprocess(real_loops, real_loops[:], {})
     assert real_loops[0].header.startswith(
         "_optimize_charset. file '/usr/local/Cellar/pypy/2.0-beta2/lib-python/2.7/sre_compile.py'. line 207"
     )
Beispiel #2
0
 def test_postparse(self):
     real_loops = [
         FinalBlock(
             "debug_merge_point('<code object _runCallbacks, file '/tmp/x/twisted-trunk/twisted/internet/defer.py', line 357> #40 POP_TOP', 0)",
             None)
     ]
     postprocess(real_loops, real_loops[:], {})
     assert real_loops[0].header.startswith(
         "_runCallbacks, file '/tmp/x/twisted-trunk/twisted/internet/defer.py', line 357"
     )
Beispiel #3
0
 def test_postparse_new(self):
     real_loops = [FinalBlock("debug_merge_point(0, 0, '<code object _optimize_charset. file '/usr/local/Cellar/pypy/2.0-beta2/lib-python/2.7/sre_compile.py'. line 207> #351 LOAD_FAST')", None)]
     postprocess(real_loops, real_loops[:], {})
     assert real_loops[0].header.startswith("_optimize_charset. file '/usr/local/Cellar/pypy/2.0-beta2/lib-python/2.7/sre_compile.py'. line 207")
Beispiel #4
0
 def test_postparse(self):
     real_loops = [FinalBlock("debug_merge_point('<code object _runCallbacks, file '/tmp/x/twisted-trunk/twisted/internet/defer.py', line 357> #40 POP_TOP', 0)", None)]
     postprocess(real_loops, real_loops[:], {})
     assert real_loops[0].header.startswith("_runCallbacks, file '/tmp/x/twisted-trunk/twisted/internet/defer.py', line 357")