From adb7e2a0ca72ff991dfad236d859d52378add44e Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk <21087696+oleksandr-pavlyk@users.noreply.github.com> Date: Sun, 28 Jun 2026 07:26:08 -0500 Subject: [PATCH] Test to use --bulk-debug-python stdout, not STDOUT Also add a test to check that STDOUT also works. --- python/test/test_nvbench_compare.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/test/test_nvbench_compare.py b/python/test/test_nvbench_compare.py index 46f3626..82ddbb5 100644 --- a/python/test/test_nvbench_compare.py +++ b/python/test/test_nvbench_compare.py @@ -655,6 +655,12 @@ def test_format_bulk_debug_python_loads_arrays(tmp_path, nvbench_compare): assert arrays["reference_frequencies"] is None +def test_bulk_debug_output_stdout_token_is_case_insensitive(nvbench_compare): + assert nvbench_compare.BulkDebugOutput("stdout").is_stdout + assert nvbench_compare.BulkDebugOutput("STDOUT").is_stdout + assert not nvbench_compare.BulkDebugOutput("output.py").is_stdout + + def test_format_bulk_debug_python_handles_nonfinite_values(nvbench_compare): script = nvbench_compare.format_bulk_debug_python( [ @@ -2611,7 +2617,7 @@ def test_main_prints_bulk_debug_python_to_stdout(monkeypatch, capsys, nvbench_co [ "nvbench_compare", "--bulk-debug-python", - "STDOUT", + "stdout", "ref.json", "cmp.json", ],