Skip to content

macOS: Doctest failures in some locales #30586

@mkoeppe

Description

@mkoeppe

There are also some other locale problems that show up in doctests
(for example https://groups.google.com/d/msg/sage-release/spalYgXKr-4/ZVsbgHIlAgAJ and https://groups.google.com/g/sage-release/c/IiGznoPMATI/m/jynWfRcmDAAJ)

sage -t --long --warn-long 113.2 --random-seed=0 src/sage/misc/sageinspect.py
**********************************************************************
File "src/sage/misc/sageinspect.py", line 1497, in sage.misc.sageinspect.sage_getargspec
Failed example:
    sage.misc.sageinspect.sage_getargspec(r.lm)
Expected:
    ArgSpec(args=['self'], varargs='args', keywords='kwds', defaults=None)
Got:
     起動準備中です -  警告メッセージ: 
    1: Setting LC_COLLATE failed, using "C" 
    2: Setting LC_TIME failed, using "C" 
    3: Setting LC_MESSAGES failed, using "C" 
    4: Setting LC_MONETARY failed, using "C" 
    ArgSpec(args=['self'], varargs='args', keywords='kwds', defaults=None)

Perhaps just a misconfigured system, but we should make sure to robustly set a consistent locale in which the doctests are run.

CC: @dimpase @orlitzky @seblabbe

Component: doctest framework

Issue created by migration from https://trac.sagemath.org/ticket/30586

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions