Skip to content

some tests fail with -O (assertions off) #92886

Closed
@iritkatriel

Description

@iritkatriel

On main (3.12 branch):

% ./python.exe -Om test -j2
[...]
10 tests failed:
test_clinic test_coroutines test_dis test_imaplib
test_multiprocessing_forkserver test_multiprocessing_spawn
test_py_compile test_sys_settrace test_wsgiref test_zipimport

This seems wrong because
(1) it indicates that some assertions should be exceptions instead.
(2) it implies that we don't have a buildbot testing with -O

  • test_clinic
  • test_coroutines
  • test_dis
  • test_imaplib
  • test_multiprocessing_forkserver
  • test_multiprocessing_spawn
  • test_py_compile
  • test_sys_settrace
  • test_wsgiref
  • test_zipimport

Metadata

Metadata

Assignees

No one assigned

    Labels

    easytestsTests 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