mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Fix Pyston speedups (#281)
We remove (i.e. hide behind a debug ifdef) the recursion checking methods, and the memory hooks and memory allocator methods. ASAN mode has no PYMALLOC, so we need a macro. Fix build break with des.c stack allocation.
This commit is contained in:
parent
2fe8571010
commit
57f0eed382
42 changed files with 260 additions and 63 deletions
3
third_party/python/Lib/test/test_descr.py
vendored
3
third_party/python/Lib/test/test_descr.py
vendored
|
@ -5,6 +5,7 @@ import itertools
|
|||
import math
|
||||
import pickle
|
||||
import sys
|
||||
import cosmo
|
||||
import types
|
||||
import unittest
|
||||
import warnings
|
||||
|
@ -3469,6 +3470,7 @@ order (MRO) for bases """
|
|||
list.__init__(a, sequence=[0, 1, 2])
|
||||
self.assertEqual(a, [0, 1, 2])
|
||||
|
||||
@unittest.skipUnless(cosmo.MODE == "dbg", "disabled recursion checking")
|
||||
def test_recursive_call(self):
|
||||
# Testing recursive __call__() by setting to instance of class...
|
||||
class A(object):
|
||||
|
@ -4494,6 +4496,7 @@ order (MRO) for bases """
|
|||
with self.assertRaises(TypeError):
|
||||
str.__add__(fake_str, "abc")
|
||||
|
||||
@unittest.skipUnless(cosmo.MODE == "dbg", "disabled recursion checking")
|
||||
def test_repr_as_str(self):
|
||||
# Issue #11603: crash or infinite loop when rebinding __str__ as
|
||||
# __repr__.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue