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

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new 2cfc75b6af test fixes
2cfc75b6af is described below

commit 2cfc75b6af7459759c9fd5b1c266090469099077
Author: Paul King <[email protected]>
AuthorDate: Wed Apr 16 16:22:39 2025 +1000

    test fixes
---
 .../org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/src/test/groovy/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy 
b/src/test/groovy/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
index 20631dbbd1..01f09068d1 100644
--- 
a/src/test/groovy/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
+++ 
b/src/test/groovy/org/codehaus/groovy/runtime/AppendableDgmMethodsTest.groovy
@@ -40,6 +40,9 @@ class AppendableDgmMethodsTest extends GroovyTestCase {
         app.withFormatter(Locale.FRANCE) { Formatter f ->
             f.format(" e = %+10.4f", Math.E)
         }
-        assert store.join('') == 'hello [a:1, b:2] 2001 e =    +2,7183'
+        // seems some JDKs fall back to default locale when COMPAT locale goes 
away (23+)
+        assert store.join('') in ['hello [a:1, b:2] 2001 e =    +2,7183',
+                                  'hello [a:1, b:2] 2001 e =    +2.7183' // 
for JDK 23
+        ]
     }
 }

Reply via email to