Mercurial > hg
comparison tests/test-ancestor.py.out @ 27061:9c75daf89450
lsprof: support PyPy (issue4573)
PyPy's _lsprof module doesn't export a "profiler_entry" symbol. This
patch treats the symbol as optional and falls back to verifying the
attribute is present on the first entry in the collected data as
part of validation.
There is a chance not every entry will contain the requested sort
attribute. But, this patch does unbust lsprof on PyPy for the hg
commands I've tested, so I assume it is sufficient. It's certainly
better than the ImportError we encountered before.
As part of the import refactor, I snuck in the addition of
absolute_import.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 21 Nov 2015 23:26:22 -0800 |
parents | 3b1b8f25443e |
children | b6db2e80a9ce |
comparison
equal
deleted
inserted
replaced
27060:4613a89bea42 | 27061:9c75daf89450 |
---|