File: test_benchmark.py

package info (click to toggle)
python-crc32c 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: ansic: 979; python: 358; makefile: 2; sh: 2
file content (10 lines) | stat: -rw-r--r-- 220 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import subprocess
import sys

import pytest


@pytest.mark.calculates_crc32c
def test_benchmark() -> None:
    out = subprocess.check_output([sys.executable, "-m", "crc32c.benchmark"])
    assert b"crc32c ran at" in out