Skip to content

Commit

Permalink
Add test for unknown CLI argument
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jan 4, 2021
1 parent 84f86b7 commit 6e144ff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dask_cuda/tests/test_dask_cuda_worker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import absolute_import, division, print_function

import os
import subprocess

import pytest

Expand Down Expand Up @@ -98,3 +99,9 @@ def test_rmm_managed(loop): # noqa: F811
)
for v in memory_resource_type.values():
assert v is rmm.mr.ManagedMemoryResource


def test_unknown_argument():
ret = subprocess.run(["dask-cuda-worker", "--my-argument"], capture_output=True)
assert ret.returncode != 0
assert b"Scheduler address: --my-argument" in ret.stderr

0 comments on commit 6e144ff

Please sign in to comment.