You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2025/10/06 14:45:20 UTC

(arrow-rs) branch main updated: minor(parquet): Fix test_not_found on Windows (#8555)

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

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new c521e1fe27 minor(parquet): Fix test_not_found on Windows (#8555)
c521e1fe27 is described below

commit c521e1fe2715548fb04ed017f3a1544b44265fb3
Author: Nuno Faria <nu...@gmail.com>
AuthorDate: Mon Oct 6 15:45:14 2025 +0100

    minor(parquet): Fix test_not_found on Windows (#8555)
    
    # Which issue does this PR close?
    
    - N/A.
    
    # Rationale for this change
    
    The `parquet` `test_not_found` unit test was checking the error message
    using the Unix-specific output. This PR uses only the generic error
    message so it can work on Windows as well.
    
    # What changes are included in this PR?
    
    - Updated the `test_not_found` unit test.
    
    # Are these changes tested?
    
    Yes.
    
    # Are there any user-facing changes?
    
    No.
---
 parquet/src/arrow/async_reader/store.rs | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/parquet/src/arrow/async_reader/store.rs b/parquet/src/arrow/async_reader/store.rs
index ce1398b56d..823346a183 100644
--- a/parquet/src/arrow/async_reader/store.rs
+++ b/parquet/src/arrow/async_reader/store.rs
@@ -292,10 +292,7 @@ mod tests {
             Ok(_) => panic!("expected failure"),
             Err(e) => {
                 let err = e.to_string();
-                assert!(
-                    err.contains("not found: No such file or directory (os error 2)"),
-                    "{err}",
-                );
+                assert!(err.contains("I don't exist.parquet not found:"), "{err}",);
             }
         }
     }