Skip to content
Snippets Groups Projects
Commit 93c63984 authored by Matt Wala's avatar Matt Wala
Browse files

Add NORMALIZE_WHITESPACE option to a failing doctest

parent 2d6d6245
No related branches found
No related tags found
1 merge request!29pytest_generate_tests_for_pyopencl(): Remove use of deprecated
Pipeline #
......@@ -64,7 +64,7 @@ the device:
>>> ary_host["field1"].fill(217)
>>> ary_host["field2"].fill(1000)
>>> ary_host[13]["field2"] = 12
>>> print(ary_host)
>>> print(ary_host) #doctest: +NORMALIZE_WHITESPACE
[(217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.)
(217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.) (217, 1000.)
(217, 1000.) (217, 1000.) (217, 1000.) (217, 12.) (217, 1000.)
......@@ -98,7 +98,7 @@ as well as with PyOpenCL's built-in operations:
>>> elwise = ElementwiseKernel(ctx, "my_struct *a", "a[i].field1 = 2;",
... preamble=my_struct_c_decl)
>>> evt = elwise(ary)
>>> print(ary)
>>> print(ary) #doctest: +NORMALIZE_WHITESPACE
[(2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
(2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
(2, 1000.) (2, 12.) (2, 1000.) (2, 1000.) (2, 1000.) (2, 1000.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment