Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_capi surprisingly skipped on Windows #118351

Closed
neonene opened this issue Apr 27, 2024 · 5 comments
Closed

test_capi surprisingly skipped on Windows #118351

neonene opened this issue Apr 27, 2024 · 5 comments
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@neonene
Copy link
Contributor

neonene commented Apr 27, 2024

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

@neonene neonene added the type-bug An unexpected behavior, bug, or error label Apr 27, 2024
@neonene
Copy link
Contributor Author

neonene commented Apr 27, 2024

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

@neonene neonene changed the title test_capi is skipped on Windows many tests are skipped on Windows Apr 27, 2024
@neonene neonene changed the title many tests are skipped on Windows Many tests are skipped on Windows Apr 27, 2024
@neonene
Copy link
Contributor Author

neonene commented Apr 27, 2024

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)

@Eclips4
Copy link
Member

Eclips4 commented Apr 27, 2024

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

@Eclips4 Eclips4 changed the title Many tests are skipped on Windows test_capi suprisingly skipped on Windows Apr 27, 2024
@Eclips4 Eclips4 added tests Tests in the Lib/test dir OS-windows labels Apr 27, 2024
@Eclips4 Eclips4 changed the title test_capi suprisingly skipped on Windows test_capi surprisingly skipped on Windows Apr 27, 2024
@Eclips4
Copy link
Member

Eclips4 commented Apr 27, 2024

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')
>>>

@Eclips4
Copy link
Member

Eclips4 commented Apr 29, 2024

Thanks for the report @neonene !

@Eclips4 Eclips4 closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants