Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/objspace/std/test/test_newformat.py::AppTestFloatFormatting::()::test_locale_german

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00007faf07c25f68>

    def test_locale_german(self):
            import locale, sys
            for name in ['de_DE', 'de_DE.utf8']:
                try:
                    locale.setlocale(locale.LC_NUMERIC, name)
                    break
                except locale.Error:
                    pass
            else:
                skip("no german locale")
            x = 1234.567890
            try:
                if sys.platform != "darwin":
                    assert locale.format('%g', x, grouping=True) == '1.234,57'
                    assert format(x, 'n') == '1.234,57'
                    assert format(12345678901234, 'n') == '12.345.678.901.234'
                else:
                    # No thousands separator on German in MacOS since 10.4
>                   assert locale.format('%g', x, grouping=True) == '1234,57'
E                   (application-level) AssertionError

[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/objspace/std/test/test_newformat.py:410]:19: AssertionError
builder: own-macos-x86-64 build #1206
test: pypy/objspace/std/test/test_newformat/py/AppTestFloatFormatting/()/test_locale_german