pypy/module/gc/test/test_ztranslation.py::test_checkmodule
def test_checkmodule():
# we need to ignore GcCollectStepStats, else checkmodule fails. I think
# this happens because W_GcCollectStepStats.__init__ is only called from
# GcCollectStepHookAction.perform() and the fake objspace doesn't know
# about those: so, perform() is never annotated and the annotator thinks
# W_GcCollectStepStats has no attributes
> checkmodule('gc', ignore=['GcCollectStepStats'])
module/gc/test/test_ztranslation.py:9:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
objspace/fake/checkmodule.py:23: in checkmodule
seeobj_w.append(module._load_lazily(space, name))
interpreter/mixedmodule.py:103: in _load_lazily
w_value = loader(space)
interpreter/mixedmodule.py:182: in ifileloader
d[name] = __import__(pkgroot+'.'+name, None, None, [name])
module/gc/interp_gc.py:4: in <module>
from pypy.module.gc.hook import W_GcCollectStepStats
module/gc/hook.py:2: in <module>
from rpython.memory.gc import incminimark
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/own-linux-aarch64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/own-linux-aarch64/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
../rpython/memory/gc/incminimark.py:70: SyntaxError
(somefailed=True in module/gc/test)
builder: own-linux-aarch64 build #2718
test: pypy/module/gc/test/test_ztranslation/py/test_checkmodule