Skip to content

test_capi surprisingly skipped on Windows #118351

Description

@neonene

Bug report

Bug description:

>python -m test test_capi
Running Debug|x64 interpreter...
Using random seed: 1337652706
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_capi
test_capi skipped -- requires test module
test_capi skipped

== Tests result: SUCCESS ==

1 test skipped:
    test_capi

The test modules are in a build directory.

I can see the default behavior change since ea94b3b.

cc @erlend-aasland @zooba

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Windows

Linked PRs

Activity

  1. neonene commented on Apr 27, 2024

    @neonene
    ContributorAuthor

    Recent GHA? log:

    42 tests skipped:
        test.test_asyncio.test_unix_events test.test_gdb.test_backtrace
        test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
        test.test_gdb.test_misc test.test_gdb.test_pretty_print
        test.test_multiprocessing_fork.test_manager
        test.test_multiprocessing_fork.test_misc
        test.test_multiprocessing_fork.test_processes
        test.test_multiprocessing_fork.test_threads
        test.test_multiprocessing_forkserver.test_manager
        test.test_multiprocessing_forkserver.test_misc
        test.test_multiprocessing_forkserver.test_processes
        test.test_multiprocessing_forkserver.test_threads test_capi
        test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll
        test_external_inspection test_fcntl test_fork1 test_grp test_ioctl
        test_kqueue test_openpty test_perf_profiler test_perfmaps
        test_poll test_pty test_pwd test_readline test_resource
        test_syslog test_termios test_threadsignals test_tty test_wait3
        test_wait4 test_xxlimited test_xxtestfuzz
    
  2. changed the title [-]test_capi is skipped on Windows[/-] [+]many tests are skipped on Windows[/+] on Apr 27, 2024
  3. changed the title [-]many tests are skipped on Windows[/-] [+]Many tests are skipped on Windows[/+] on Apr 27, 2024
  4. neonene commented on Apr 27, 2024

    @neonene
    ContributorAuthor

    Before ea94b3b:

    40 tests skipped:
        test.test_asyncio.test_unix_events test.test_gdb.test_backtrace
        test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full
        test.test_gdb.test_misc test.test_gdb.test_pretty_print
        test.test_multiprocessing_fork.test_manager
        test.test_multiprocessing_fork.test_misc
        test.test_multiprocessing_fork.test_processes
        test.test_multiprocessing_fork.test_threads
        test.test_multiprocessing_forkserver.test_manager
        test.test_multiprocessing_forkserver.test_misc
        test.test_multiprocessing_forkserver.test_processes
        test.test_multiprocessing_forkserver.test_threads test_curses
        test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll test_fcntl
        test_fork1 test_grp test_ioctl test_kqueue test_openpty
        test_perf_profiler test_perfmaps test_poll test_pty test_pwd
        test_readline test_resource test_syslog test_termios
        test_threadsignals test_tty test_wait3 test_wait4 test_xxlimited
        test_xxtestfuzz
    

    My wording in the title is wrong. (Please fix)

  5. Eclips4 commented on Apr 27, 2024

    @Eclips4
    Member

    So, it's seems that there only one test was skipped which shouldn't have been - test_capi. Is this so?

  6. changed the title [-]Many tests are skipped on Windows[/-] [+]``test_capi`` suprisingly skipped on Windows[/+] on Apr 27, 2024
  7. changed the title [-]``test_capi`` suprisingly skipped on Windows[/-] [+]``test_capi`` surprisingly skipped on Windows[/+] on Apr 27, 2024
  8. Eclips4 commented on Apr 27, 2024

    @Eclips4
    Member

    Windows build do not support --disable-test-modules feature.
    Therefore there's no TEST_MODULES config var:

    ./python
    Running Debug|x64 interpreter...
    Python 3.13.0a6+ (heads/main:51aefc5bf9, Apr 27 2024, 22:25:30) [MSC v.1933 64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sysconfig
    >>> sysconfig.get_config_var('TEST_MODULES')
    >>>
  9. added a commit that references this issue on Apr 29, 2024
  10. Eclips4 commented on Apr 29, 2024

    @Eclips4
    Member

    Thanks for the report @neonene !

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

    OS-windowstestsTests 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