diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 18:39:00 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-18 19:57:17 +0200 |
commit | 6a200443106bb83c6261c64c323ceb9f0563fdad (patch) | |
tree | 45d1f41f2da35631079bc4b559b1cb44b4c34e32 /test/py/lib | |
parent | net: don't copy data in struct buf (diff) | |
download | cimple-6a200443106bb83c6261c64c323ceb9f0563fdad.tar.gz cimple-6a200443106bb83c6261c64c323ceb9f0563fdad.zip |
implement flame graph generation
Diffstat (limited to '')
-rw-r--r-- | test/py/lib/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/py/lib/tests.py b/test/py/lib/tests.py index a676021..fe90f96 100644 --- a/test/py/lib/tests.py +++ b/test/py/lib/tests.py @@ -14,8 +14,10 @@ def my_parametrize(names, values, ids=None, **kwargs): if len(_names) == 1: ids = [f'{names}={v}' for v in values] else: + _values = [combination.values if hasattr(combination, 'values') else combination + for combination in values] ids = [ '-'.join(f'{k}={v}' for k, v in zip(_names, combination)) - for combination in values + for combination in _values ] return pytest.mark.parametrize(names, values, ids=ids, **kwargs) |