GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — some tests fail with -O (assertions off) · Issue #92886 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
some tests fail with -O (assertions off)#92886
Copy link
Labels
easytestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@iritkatriel
iritkatriel
opened on May 17, 2022
Issue body actions

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
Reacted by Erlend E. Aasland, Serhiy Storchaka and Jack Hindmarch

Activity

Next
  1. iritkatriel
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on May 17, 2022
  2. erlend-aasland
    added
    easy
    on May 17, 2022
  3. arunsl commented on May 19, 2022

    @arunsl
    arunsl
    on May 19, 2022
    More actions

    Could reproduce issue with 4 test cases in windows with Python 3.9:

    python -Om test -j2 test_clinic test_coroutines test_dis test_imaplib test_multiprocessing_forkserver test_multiprocess
    ing_spawn test_py_compile test_sys_settrace test_wsgiref test_zipimport
    0:00:00 Run tests in parallel using 2 child processes
    0:00:01 [ 1/10] test_clinic skipped
    test_clinic skipped -- clinic directory could not be found
    0:00:01 [ 2/10/1] test_coroutines failed
    test test_coroutines failed -- Traceback (most recent call last):
    File "...\test\test_coroutines.py", line 1265, in test_with_5
    run_async(func())
    AssertionError: AssertionError not raised
    0:00:31 load avg: 0.00 running: test_dis (30.0 sec), test_imaplib (30.0 sec)
    0:00:36 load avg: 0.00 [ 3/10/1] test_dis passed -- running: test_imaplib (34.8 sec)
    0:00:36 load avg: 0.00 [ 4/10/1] test_imaplib passed (34.4 sec)
    0:01:06 load avg: 0.22 running: test_multiprocessing_forkserver (30.0 sec), test_multiprocessing_spawn (30.0 sec)
    0:01:36 load avg: 0.16 running: test_multiprocessing_forkserver (1 min), test_multiprocessing_spawn (1 min)
    0:01:58 load avg: 0.11 [ 5/10/1] test_multiprocessing_forkserver skipped -- running: test_multiprocessing_spawn (1 min 22 sec)
    test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
    0:01:58 load avg: 0.11 [ 6/10/1] test_multiprocessing_spawn passed (1 min 21 sec)
    0:01:59 load avg: 0.11 [ 7/10/1] test_sys_settrace passed
    0:01:59 load avg: 0.11 [ 8/10/2] test_py_compile failed
    test test_py_compile failed -- multiple errors occurred; run in verbose mode for details
    0:01:59 load avg: 0.11 [ 9/10/3] test_wsgiref failed
    test test_wsgiref failed -- multiple errors occurred; run in verbose mode for details
    0:01:59 load avg: 0.11 [10/10/4] test_zipimport failed
    test test_zipimport failed -- multiple errors occurred; run in verbose mode for details
    == Tests result: FAILURE ==
    4 tests OK.
    4 tests failed:
    test_coroutines test_py_compile test_wsgiref test_zipimport
    2 tests skipped:
    test_clinic test_multiprocessing_forkserver
    Total duration: 1 min 59 sec
    Tests result: FAILURE

    python -m test -j2 test_coroutines test_py_compile test_wsgiref test_zipimport
    0:00:00 Run tests in parallel using 2 child processes
    0:00:01 [1/4] test_py_compile passed
    0:00:01 [2/4] test_coroutines passed
    0:00:02 [3/4] test_wsgiref passed
    0:00:02 [4/4] test_zipimport passed
    == Tests result: SUCCESS ==
    All 4 tests OK.

  4. jackh-ncl commented on May 24, 2022

    @jackh-ncl
    jackh-ncl
    on May 24, 2022
    Contributor
    More actions

    Was able to reproduce this. I have a draft PR here: #93174 😃

  5. JelleZijlstra
    added a commit that references this issue on Jun 4, 2022

    gh-92886: Fix test that fails when running with `-O` in `test_imaplib…

    8150b8c
  6. miss-islington
    added 4 commits that reference this issue on Jun 4, 2022

    pythongh-92886: Fix test that fails when running with `-O` in `test_i…

    ed5274c

    pythongh-92886: Fix test that fails when running with `-O` in `test_i…

    d7e85cc

    gh-92886: Fix test that fails when running with `-O` in `test_imaplib…

    1497d7f

    gh-92886: Fix test that fails when running with `-O` in `test_imaplib…

    7b3cf3a
  7. brettcannon
    added a commit that references this issue on Jun 10, 2022

    gh-92886: Fix tests that fail when running with optimizations (`-O`) …

    484a235
  8. miss-islington
    added 2 commits that reference this issue on Jun 10, 2022

    pythongh-92886: Fix tests that fail when running with optimizations (…

    9609230

    pythongh-92886: Fix tests that fail when running with optimizations (…

    f2dd2db
  9. brettcannon commented on Jun 10, 2022

    @brettcannon
    brettcannon
    on Jun 10, 2022
    Member
    More actions

    I have created a checklist of the failing tests and checked off the ones that look to have merged PRs that fixed them.

    Reacted by Erlend E. Aasland
  10. miss-islington
    added a commit that references this issue on Jun 10, 2022

    gh-92886: Fix tests that fail when running with optimizations (`-O`) …

    0aa9ec9
  11. 13 remaining items

  12. miss-islington
    added 3 commits that reference this issue on Oct 8, 2022

    gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)

    72a23d8

    gh-92886: make test_ast pass with -O (assertions off) (GH-98058)

    e493792

    gh-92886: make test_ast pass with -O (assertions off) (GH-98058)

    225bee7
  13. carljm
    added 2 commits that reference this issue on Oct 8, 2022

    Merge branch 'main' into typewatch

    27a4980

    Merge branch 'main' into urllibnonet

    132c32e
  14. mpage
    added 3 commits that reference this issue on Oct 11, 2022

    pythongh-92886: [clinic.py] raise exception on invalid input instead …

    ca135e1

    pythongh-92886: make test_coroutines pass with -O (assertions off) (p…

    dcbae74

    pythongh-92886: make test_ast pass with -O (assertions off) (pythonGH…

    efbc783
  15. iritkatriel
    added 4 commits that reference this issue on Oct 18, 2022

    gh-92886: Fixing tests that fail when running with optimizations (`-O…

    debacd9

    gh-92886: Fix tests that fail when running with optimizations (`-O`) …

    602ea40

    gh-92886: Fix tests that fail when running with optimizations (`-O`) …

    a3be874

    gh-92886: Replace assertion statements in `handlers.BaseHandler` to s…

    b6e59d7
  16. iritkatriel commented on Oct 19, 2022

    @iritkatriel
    iritkatriel
    on Oct 19, 2022
    MemberAuthor
    More actions

    Thank you @jackh-ncl !

    Reacted by Erlend E. Aasland
  17. iritkatriel
    closed this as completedon Oct 19, 2022
  18. carljm
    added a commit that references this issue on Oct 20, 2022

    Merge branch 'main' into typewatch

    8bba5da
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

    easytestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.