From 45bda8e2d9f16e0d8b21be8f85fe8a4a0a01f49f Mon Sep 17 00:00:00 2001 From: Graham Markall Date: Fri, 29 Nov 2024 09:54:58 +0000 Subject: [PATCH] Fix `test_bool()` on Windows Windows uses CRLF line endings so we need to allow for that. --- numba_cuda/numba/cuda/tests/cudapy/test_print.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numba_cuda/numba/cuda/tests/cudapy/test_print.py b/numba_cuda/numba/cuda/tests/cudapy/test_print.py index 2100064..30328ea 100644 --- a/numba_cuda/numba/cuda/tests/cudapy/test_print.py +++ b/numba_cuda/numba/cuda/tests/cudapy/test_print.py @@ -126,8 +126,8 @@ def test_printfloat(self): def test_bool(self): output, _ = self.run_code(printbool_usecase) - expected = "True\nFalse\nTrue\nTrue\nFalse\nFalse" - self.assertEqual(output.strip(), expected) + expected = "True\r?\nFalse\r?\nTrue\r?\nTrue\r?\nFalse\r?\nFalse" + self.assertRegex(output.strip(), expected) def test_printempty(self): output, _ = self.run_code(printempty_usecase)