Skip to content

Commit

Permalink
Update a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jungtaekkim committed Apr 30, 2024
1 parent afcf6c1 commit a6789c4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/common/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,5 @@ def test_version_bayeso():
assert bayeso.__version__ == STR_VERSION

def test_version_setup():
try:
import importlib
assert importlib.metadata.version("bayeso") == STR_VERSION
except:
import pkg_resources
assert pkg_resources.require("bayeso")[0].version == STR_VERSION
import importlib
assert importlib.metadata.version("bayeso") == STR_VERSION

0 comments on commit a6789c4

Please sign in to comment.