Skip to content

Commit

Permalink
test_bitonic_sort: use ctx_factory()
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored and inducer committed May 20, 2024
1 parent b659cad commit 3eea7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ def test_key_value_sorter(ctx_factory):
])
@pytest.mark.bitonic
def test_bitonic_sort(ctx_factory, size, dtype):
ctx = cl.create_some_context()
ctx = ctx_factory()
queue = cl.CommandQueue(ctx)

dev = ctx.devices[0]
Expand Down Expand Up @@ -1113,7 +1113,7 @@ def test_bitonic_argsort(ctx_factory, size, dtype):
pytest.xfail("pypy doesn't seem to handle as_strided "
"on zero-sized arrays very well")

ctx = cl.create_some_context()
ctx = ctx_factory()
queue = cl.CommandQueue(ctx)

device = queue.device
Expand Down

0 comments on commit 3eea7f7

Please sign in to comment.