Skip to content

Commit

Permalink
Fix get_version test
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jan 14, 2025
1 parent 1487624 commit 1357cd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_version_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def test_get_version_cmd(backend):
# Read version from Cargo.toml
with open('Cargo.toml', 'r') as f:
config = toml.load(f)
version = config['package']['version']
major, minor, patch = version.split('.')
assert (version[0], version[1], version[2]) == (int(major), int(minor), int(patch))
v = config['package']['version']
major, minor, patch = v.split('.')
assert (version[0], version[1], version[2]) == (int(major), int(minor), int(patch))

0 comments on commit 1357cd9

Please sign in to comment.