Skip to content

Commit 678facc

Browse files
Improve test_version_format() error message for version mismatches (#1015)
* Update test_version_format to provide a clearer error message * Comment fix * Add newline * Update test_version_format to provide a clearer error message * linter fix --------- Co-authored-by: Fokko Driesprong <[email protected]>
1 parent c716a89 commit 678facc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_version.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def test_version_format() -> None:
2323

2424
installed_version = metadata.version("pyiceberg")
2525

26-
assert (
27-
__version__ == installed_version
28-
), f"{__version__} <> {installed_version}, the installed version does not match with the current codebase"
26+
assert __version__ == installed_version, (
27+
f"The installed version ({installed_version}) does not match the current codebase version ({__version__})."
28+
"This failure could be due to a recent version bump in the Pyiceberg library. "
29+
"Please ensure you have the latest version installed by rerunning `make install` command."
30+
)

0 commit comments

Comments
 (0)