Skip to content

Commit

Permalink
TST: add a test that the np.version public content is as expected
Browse files Browse the repository at this point in the history
[skip azp] [skip cirrus]
  • Loading branch information
rgommers committed Mar 29, 2024
1 parent 3b9159d commit 03fd9f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions numpy/tests/test_numpy_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,16 @@ def test_short_version():
else:
assert_(np.__version__.split("+")[0] == np.version.short_version,
"short_version mismatch in development version")


def test_version_module():
contents = set([s for s in dir(np.version) if not s.startswith('_')])
expected = set([
'full_version',
'git_revision',
'release',
'short_version',
'version',
])

assert contents == expected

0 comments on commit 03fd9f3

Please sign in to comment.