Skip to content

test_strsignal fails on NetBSD with TypeError #124083

@furkanonder

Description

@furkanonder

Bug report

Bug description:

-bash-5.2$ ./python -m test test_signal -m test_strsignal
Using random seed: 3137472754
0:00:00 load avg: 5.12 Run 1 test sequentially in a single process
0:00:00 load avg: 5.12 [1/1] test_signal
test test_signal failed -- Traceback (most recent call last):
  File "/home/blue/cpython/Lib/test/test_signal.py", line 127, in test_strsignal
    self.assertIn("Interrupt", signal.strsignal(signal.SIGINT))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blue/cpython/Lib/unittest/case.py", line 1180, in assertIn
    if member not in container:
       ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not a container or iterable

test_signal failed (1 error)

== Tests result: FAILURE ==

1 test failed:
    test_signal

Total duration: 142 ms
Total tests: run=1 (filtered)
Total test files: run=1/1 (filtered) failed=1
Result: FAILURE

OS: NetBSD 10.0 amd64

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesOS-netbsdtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions