This is an automated email from the ASF dual-hosted git repository.

kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new 678facc0 Improve test_version_format() error message for version 
mismatches  (#1015)
678facc0 is described below

commit 678facc09b99394acf4c1c12b5a8a67bf2a20f5d
Author: LAKSH  KRISHNA SHARMA 
<[email protected]>
AuthorDate: Fri Aug 9 21:29:29 2024 +0530

    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]>
---
 tests/test_version.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/test_version.py b/tests/test_version.py
index 32d96b06..dcaa3f07 100644
--- a/tests/test_version.py
+++ b/tests/test_version.py
@@ -23,6 +23,8 @@ def test_version_format() -> None:
 
     installed_version = metadata.version("pyiceberg")
 
-    assert (
-        __version__ == installed_version
-    ), f"{__version__} <> {installed_version}, the installed version does not 
match with the current codebase"
+    assert __version__ == installed_version, (
+        f"The installed version ({installed_version}) does not match the 
current codebase version ({__version__})."
+        "This failure could be due to a recent version bump in the Pyiceberg 
library. "
+        "Please ensure you have the latest version installed by rerunning 
`make install` command."
+    )

Reply via email to