pyodide/packages/pydecimal/test_pydecimal.py

20 lines
620 B
Python
Raw Normal View History

from pytest_pyodide import run_in_pyodide
@run_in_pyodide(packages=["test", "pydecimal"], pytest_assert_rewrites=False)
def test_pydecimal(selenium):
from test import libregrtest # type:ignore[attr-defined]
name = "test_decimal"
ignore_tests = [
"test_context_subclassing", # floating point
"test_none_args", # Some context issue?
"test_threading",
]
try:
libregrtest.main([name], ignore_tests=ignore_tests, verbose=True, verbose3=True)
except SystemExit as e:
if e.code != 0:
raise RuntimeError(f"Failed with code: {e.code}") from None