Skip to content

Commit

Permalink
Fix test_bool() on Windows
Browse files Browse the repository at this point in the history
Windows uses CRLF line endings so we need to allow for that.
  • Loading branch information
gmarkall committed Nov 29, 2024
1 parent 8cc5e47 commit 45bda8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba_cuda/numba/cuda/tests/cudapy/test_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 45bda8e

Please sign in to comment.