File: test_poselib.py

package info (click to toggle)
poselib 2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,592 kB
  • sloc: cpp: 15,023; python: 182; sh: 85; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sys
import poselib

def test_poselib():
    print(f'Python version: {sys.version}')
    print(f'PoseLib version: {poselib.__version__}')
    if sys.version_info < (3, 14):
        from posebench import run_benchmark
        print(f'Running posebench...')
        result = run_benchmark(
            subsample=10,
            subset=True,
        )
        print(result)
        print('Posebench done.')
    else:
        print('Skipping tests for Python >= 3.14 due to deps not ready yet (h5py)')