Skip to content

Stubtest is failing on master  #8098

Closed

Description

@AlexWaygood

Specifically, on 3.10.5 on macos: https://github.com/python/typeshed/runs/6946773305?check_suite_focus=true

Details
error: locale.bind_textdomain_codeset is not present at runtime
Stub: at line 147
def (builtins.str, Union[builtins.str, None]) -> Union[builtins.str, None]
Runtime:
MISSING

error: locale.bindtextdomain is not present at runtime
Stub: at line 146
def (builtins.str, Union[Union[builtins.str, os.PathLike[builtins.str]], None]) -> builtins.str
Runtime:
MISSING

error: locale.dcgettext is not present at runtime
Stub: at line 144
def (Union[builtins.str, None], builtins.str, builtins.int) -> builtins.str
Runtime:
MISSING

error: locale.dgettext is not present at runtime
Stub: at line 143
def (Union[builtins.str, None], builtins.str) -> builtins.str
Runtime:
MISSING

error: locale.gettext is not present at runtime
Stub: at line 142
def (builtins.str) -> builtins.str
Runtime:
MISSING

error: locale.textdomain is not present at runtime
Stub: at line 145
def (Union[builtins.str, None]) -> builtins.str
Runtime:
MISSING

error: socket.MsgFlag.MSG_NOSIGNAL is not present in stub
Stub:
MISSING
Runtime:
MsgFlag.MSG_NOSIGNAL

Activity

  1. hauntsaninja commented on Jun 19, 2022

    @hauntsaninja
    Collaborator

    #8096 just got a 3.10.4 run and passed (after failing #8096 (comment)). Maybe Github reverted something? Or a gradual rollout? I didn't see any relevant 3.10.5 changes from a skim

  2. hauntsaninja commented on Jun 19, 2022

    @hauntsaninja
    Collaborator

    Okay, built 3.10.5 locally on my Mac and the locale ones do indeed seem like false positives. So seems like a problem with the Github build?
    The socket one seems like a true positive (but it exists for me on 3.10.4 as well).
    If we get nondeterministic failures, note that there's a nice stubtest allowlist trick we can use with an optional group to avoid unused allowlist entry complaints:
    https://github.com/python/mypy/blob/eb1b1e007e7fd1e976e6dd0f49a71b662a30a2d6/mypy/stubtest.py#L1459

  3. added a commit that references this issue on Jun 19, 2022
    a9cd83a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions