Port changes to the package from #323 (#337)

Fixed relative text alignment in docstrings to fix autodoc warnigns

Renamed cuda.bench.test_cpp_exception and cuda.bench.test_py_exception functions
to start with underscore, signaling that these functions are internal and should
not be documented

Account for test_cpp_exceptions -> _test_cpp_exception, same for *_py_*

Make sure to reset __module__ of reexported symbols to be cuda.bench
This commit is contained in:
Oleksandr Pavlyk
2026-04-22 08:28:15 -05:00
committed by GitHub
parent b0a46f44c2
commit a3364ca5c7
3 changed files with 23 additions and 14 deletions

View File

@@ -6,12 +6,12 @@ import pytest
def test_cpp_exception():
with pytest.raises(RuntimeError, match="Test"):
bench._nvbench.test_cpp_exception()
bench._nvbench._test_cpp_exception()
def test_py_exception():
with pytest.raises(bench.NVBenchRuntimeError, match="Test"):
bench._nvbench.test_py_exception()
bench._nvbench._test_py_exception()
@pytest.mark.parametrize(