Skip to content

Instantly share code, notes, and snippets.

@steve-s
Created October 21, 2022 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steve-s/684e9b97fd4ba992275b6f4b73304f96 to your computer and use it in GitHub Desktop.
Save steve-s/684e9b97fd4ba992275b6f4b73304f96 to your computer and use it in GitHub Desktop.
$ HPY_DEBUG=1 HPY_LOG=1 PYTHONPATH=`pwd` pytest -s -k test_constraint_creation \
py/tests/test_constraint.py
============== test session starts ==============
platform linux -- Python 3.8.13+, pytest-7.1.2, pluggy-1.0.0
rootdir: /path/to//kiwi
collecting ... Loading 'kiwisolver' in HPy universal mode with a debug context
collected 8 items
py/tests/test_constraint.py .E.E.E.E.E.E.E.E
============== ERRORS ============================
_____ ERROR at teardown of test_constraint_creation[==] _____
...
> raise HPyLeakError(leaks)
E hpy.debug.leakdetector.HPyLeakError: 46 unclosed handles:
E <DebugHandle 0x55646e8155b0 for 'foo'>
E To get the stack trace of where it was allocated use:
E hpy.debug.set_handle_stack_trace_limit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment