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

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new 3ca3f9be fix(java): xlang test skip needs correct import in newer 
python versions (#2296)
3ca3f9be is described below

commit 3ca3f9bef1ad19b935462d6347a119dd5a4d9bf0
Author: Steven Schlansker <[email protected]>
AuthorDate: Wed Jun 4 10:27:40 2025 -0700

    fix(java): xlang test skip needs correct import in newer python versions 
(#2296)
    
    ## What does this PR do?
    
    fix xlang skip logic to import the correct submodule in python test
    program
---
 java/fory-test-core/src/main/java/org/apache/fory/test/TestUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/fory-test-core/src/main/java/org/apache/fory/test/TestUtils.java 
b/java/fory-test-core/src/main/java/org/apache/fory/test/TestUtils.java
index adf855ee..6939b1c0 100644
--- a/java/fory-test-core/src/main/java/org/apache/fory/test/TestUtils.java
+++ b/java/fory-test-core/src/main/java/org/apache/fory/test/TestUtils.java
@@ -90,7 +90,7 @@ public class TestUtils {
           Arrays.asList(
               "python",
               "-c",
-              "import importlib, sys; sys.exit(0 if 
importlib.util.find_spec(\"pyfory\") is None else 1)"),
+              "import importlib.util, sys; sys.exit(0 if 
importlib.util.find_spec(\"pyfory\") is None else 1)"),
           10,
           Collections.emptyMap())) {
         throw new SkipException("pyfory not installed");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to