blob: eebbe7ce3bf6e70d893f052833af42b4c0457339 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from ..utils import load_wycheproof_tests
def wycheproof_tests(*paths):
def wrapper(func):
def run_wycheproof(backend, subtests, pytestconfig):
wycheproof_root = pytestconfig.getoption(
"--wycheproof-root", skip=True
)
for path in paths:
for test in load_wycheproof_tests(wycheproof_root, path):
with subtests.test():
func(backend, test)
return run_wycheproof
return wrapper
|