Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/bz2/test/test_bz2_file.py::AppTestBZ2File::()::test_creation

self = <CallInfo when='teardown' exception: assert not {140551371285504L: <C object GcStruct rpy_string { hash, chars } at 0x...s' from '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/rpython/rtyper/lltypesystem/ll2ctypes.pyc'>.ALLOCATED>
func = <function <lambda> at 0x00007fd4e27a2f20>, when = 'teardown'

    def __init__(self, func, when):
        #: context of invocation: one of "setup", "call",
        #: "teardown", "memocollect"
        self.when = when
        self.start = time()
        try:
>           self.result = func()

../_pytest/runner.py:150: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   return CallInfo(lambda: ihook(item=item, **kwds), when=when)

../_pytest/runner.py:138: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_HookCaller 'pytest_runtest_teardown'>
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTes...0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTestMethod 'test_close'>}

    def __call__(self, **kwargs):
        assert not self.is_historic()
>       return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)

../_pytest/vendored_packages/pluggy.py:724: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.config.PytestPluginManager object at 0x00007fd4e08e3a60>
hook = <_HookCaller 'pytest_runtest_teardown'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007fd4e0b75320>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTes...0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTestMethod 'test_close'>}

    def _hookexec(self, hook, methods, kwargs):
        # called from all hookcaller instances.
        # enable_tracing will set its own wrapping function at self._inner_hookexec
>       return self._inner_hookexec(hook, methods, kwargs)

../_pytest/vendored_packages/pluggy.py:338: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

hook = <_HookCaller 'pytest_runtest_teardown'>
methods = [<_pytest.vendored_packages.pluggy.HookImpl instance at 0x00007fd4e0b75320>]
kwargs = {'__multicall__': <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTes...0 results, 1 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTestMethod 'test_close'>}

    self._inner_hookexec = lambda hook, methods, kwargs: \
>       _MultiCall(methods, kwargs, hook.spec_opts).execute()

../_pytest/vendored_packages/pluggy.py:333: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTestMethod 'test_close'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>

    def execute(self):
        all_kwargs = self.kwargs
        self.results = results = []
        firstresult = self.specopts.get("firstresult")
    
        while self.hook_impls:
            hook_impl = self.hook_impls.pop()
            args = [all_kwargs[argname] for argname in hook_impl.argnames]
            if hook_impl.hookwrapper:
>               return _wrapped_call(hook_impl.function(*args), self.execute)

../_pytest/vendored_packages/pluggy.py:595: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

wrap_controller = <generator object pytest_runtest_teardown at 0x00007fd4d1adba38>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...test_close'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>

    def _wrapped_call(wrap_controller, func):
        """ Wrap calling to a function with a generator which needs to yield
        exactly once.  The yield point will trigger calling the wrapped function
        and return its _CallOutcome to the yield point.  The generator then needs
        to finish (raise StopIteration) in order for the wrapped call to complete.
        """
        try:
            next(wrap_controller)   # first yield
        except StopIteration:
            _raise_wrapfail(wrap_controller, "did not yield")
        call_outcome = _CallOutcome(func)
        try:
            wrap_controller.send(call_outcome)
            _raise_wrapfail(wrap_controller, "has second yield")
        except StopIteration:
            pass
>       return call_outcome.get_result()

../_pytest/vendored_packages/pluggy.py:253: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00007fd4b089fc20>

    def get_result(self):
        if self.excinfo is None:
            return self.result
        else:
            ex = self.excinfo
            if _py3:
                raise ex[1].with_traceback(ex[2])
>           _reraise(*ex)  # noqa

../_pytest/vendored_packages/pluggy.py:279: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00007fd4b089fc20>
func = <bound method _MultiCall.execute of <_MultiCall 0 results, 1 meths, kwargs={'i...test_close'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>>

    def __init__(self, func):
        try:
>           self.result = func()

../_pytest/vendored_packages/pluggy.py:264: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_MultiCall 0 results, 1 meths, kwargs={'item': <AppTestMethod 'test_creation'>, 'nextitem': <AppTestMethod 'test_close'>, '__multicall__': <_MultiCall 0 results, 1 meths, kwargs={...}>}>

    def execute(self):
        all_kwargs = self.kwargs
        self.results = results = []
        firstresult = self.specopts.get("firstresult")
    
        while self.hook_impls:
            hook_impl = self.hook_impls.pop()
            args = [all_kwargs[argname] for argname in hook_impl.argnames]
            if hook_impl.hookwrapper:
                return _wrapped_call(hook_impl.function(*args), self.execute)
>           res = hook_impl.function(*args)

../_pytest/vendored_packages/pluggy.py:596: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

item = <AppTestMethod 'test_creation'>, nextitem = <AppTestMethod 'test_close'>

    def pytest_runtest_teardown(item, nextitem):
>       item.session._setupstate.teardown_exact(item, nextitem)

../_pytest/runner.py:103: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>
item = <AppTestMethod 'test_creation'>, nextitem = <AppTestMethod 'test_close'>

    def teardown_exact(self, item, nextitem):
        needed_collectors = nextitem and nextitem.listchain() or []
>       self._teardown_towards(needed_collectors)

../_pytest/runner.py:387: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>
needed_collectors = [<Session 'build'>, <PyPyModule 'pypy/module/bz2/test/test_bz2_file.py'>, <AppClassCollector 'AppTestBZ2File'>, <AppClassInstance '()'>, <AppTestMethod 'test_close'>]

    def _teardown_towards(self, needed_collectors):
        while self.stack:
            if self.stack == needed_collectors[:len(self.stack)]:
                break
>           self._pop_and_teardown()

../_pytest/runner.py:393: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>

    def _pop_and_teardown(self):
        colitem = self.stack.pop()
>       self._teardown_with_finalization(colitem)

../_pytest/runner.py:353: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>
colitem = <AppTestMethod 'test_creation'>

    def _teardown_with_finalization(self, colitem):
>       self._callfinalizers(colitem)

../_pytest/runner.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>
colitem = <AppTestMethod 'test_creation'>

    def _callfinalizers(self, colitem):
        finalizers = self._finalizers.pop(colitem, None)
        exc = None
        while finalizers:
            fin = finalizers.pop()
            try:
                fin()
            except Exception:
                # XXX Only first exception will be seen by user,
                #     ideally all should be reported.
                if exc is None:
                    exc = sys.exc_info()
        if exc:
>           py.builtin._reraise(*exc)

../_pytest/runner.py:368: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.runner.SetupState object at 0x00007fd4d11f4bf0>
colitem = <AppTestMethod 'test_creation'>

    def _callfinalizers(self, colitem):
        finalizers = self._finalizers.pop(colitem, None)
        exc = None
        while finalizers:
            fin = finalizers.pop()
            try:
>               fin()

../_pytest/runner.py:361: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   self.addfinalizer(lambda: fin(self.obj))

../_pytest/python.py:716: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pypy.module.bz2.test.test_bz2_file.AppTestBZ2File instance at 0x00007fd4b089e560>
fun = <bound method AppTestBZ2File.test_creation of <pypy.module.bz2.test.test_bz2_file.AppTestBZ2File instance at 0x00007fd4b089e560>>

    def teardown_method(self, fun):
        from rpython.rtyper.lltypesystem import ll2ctypes
        import gc
        tries = 20
        # remove the GC strings from ll2ctypes
        for key, value in ll2ctypes.ALLOCATED.items():
            if value._TYPE._gckind == 'gc':
                del ll2ctypes.ALLOCATED[key]
        #
        while tries and ll2ctypes.ALLOCATED:
            gc.collect() # to make sure we disallocate buffers
            self.space.getexecutioncontext()._run_finalizers_now()
            tries -= 1
>       assert not ll2ctypes.ALLOCATED
E       assert not {140551371285504L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa8ee400>, 140551371539968L: <C object GcStr...{ hash, chars } at 0x7fd4aa92c600>, 140551371570176L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa933c00>}
E        +  where {140551371285504L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa8ee400>, 140551371539968L: <C object GcStr...{ hash, chars } at 0x7fd4aa92c600>, 140551371570176L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa933c00>} = {140551371285504L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa8ee400>, 140551371539968L: <C object GcStr...{ hash, chars } at 0x7fd4aa92c600>, 140551371570176L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa933c00>}
E        +    where {140551371285504L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa8ee400>, 140551371539968L: <C object GcStr...{ hash, chars } at 0x7fd4aa92c600>, 140551371570176L: <C object GcStruct rpy_string { hash, chars } at 0x7fd4aa933c00>} = <module 'rpython.rtyper.lltypesystem.ll2ctypes' from '/Users/matti/build-worker-x86_64/own-macos-x86-64/build/rpython/rtyper/lltypesystem/ll2ctypes.pyc'>.ALLOCATED

module/bz2/test/support.py:15: AssertionError
builder: own-macos-x86-64 build #1219+
test: pypy/module/bz2/test/test_bz2_file.py::AppTestBZ2File::()::test_creation