Skip to content

Commit

Permalink
update to latest branch-24.06, move test
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed May 13, 2024
1 parent 7569d4d commit 3c40558
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions python/rmm/rmm/tests/test_version.py
@@ -0,0 +1,24 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import rmm


def test_version_constants_are_populated():
# __git_commit__ will only be non-empty in a built distribution
assert isinstance(rmm.__git_commit__, str)

# __version__ should always be non-empty
assert isinstance(rmm.__version__, str)
assert len(rmm.__version__) > 0

0 comments on commit 3c40558

Please sign in to comment.