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 — `test_descr` fails when run with `-OO` · Issue #115249 · python/cpython

test_descr fails when run with -OO #115249

New issue
Copy link
New issue
Copy link
Closed
Closed
test_descr fails when run with -OO#115249
Copy link
Assignees
sobolevn
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@sobolevn
sobolevn
opened on Feb 10, 2024
Issue body actions

Bug report

Output:

» ./python.exe -OO -m test test_descr
Using random seed: 1321086896
0:00:00 load avg: 3.34 Run 1 test sequentially
0:00:00 load avg: 3.34 [1/1] test_descr
test test_descr failed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython2/Lib/test/test_descr.py", line 1601, in test_classmethods
    self.assertEqual(cm.__dict__, cm_dict)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'__module__': 'test.test_descr', '__name__':[114 chars]: {}} != {'__annotations__': {}, '__doc__': 'f docstri[123 chars]>.f'}
  {'__annotations__': {},
-  '__doc__': None,
+  '__doc__': 'f docstring',
   '__module__': 'test.test_descr',
   '__name__': 'f',
   '__qualname__': 'ClassPropertiesAndMethods.test_classmethods.<locals>.f'}

test_descr failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_descr

Total duration: 353 ms
Total tests: run=156 failures=1 skipped=2
Total test files: run=1/1 failed=1
Result: FAILURE

I have a fix ready.

Linked PRs

  • gh-115249: Fix test_descr with -OO mode #115250
  • [3.12] gh-115249: Fix test_descr with -OO mode (GH-115250) #115277
  • [3.11] gh-115249: Fix test_descr with -OO mode (GH-115250) #115278

Activity

  1. sobolevn
    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 Feb 10, 2024
  2. sobolevn
    self-assigned this
    on Feb 10, 2024
  3. sobolevn
    added 2 commits that reference this issue on Feb 10, 2024

    pythongh-115249: Fix `test_descr` with `-OO` mode

    acfad85

    gh-115249: Fix `test_descr` with `-OO` mode (#115250)

    1f23837
  4. miss-islington
    added 2 commits that reference this issue on Feb 11, 2024

    pythongh-115249: Fix `test_descr` with `-OO` mode (pythonGH-115250)

    842c8ed

    pythongh-115249: Fix `test_descr` with `-OO` mode (pythonGH-115250)

    13f6c40
  5. sobolevn
    added 2 commits that reference this issue on Feb 11, 2024

    [3.12] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115277)

    5baf90e

    [3.11] gh-115249: Fix `test_descr` with `-OO` mode (GH-115250) (#115278)

    3aa9621
  6. sobolevn commented on Feb 11, 2024

    @sobolevn
    sobolevn
    on Feb 11, 2024
    MemberAuthor
    More actions

    Done!

  7. sobolevn
    closed this as completedon Feb 11, 2024
  8. fsc-eriker
    added a commit that references this issue on Feb 14, 2024

    pythongh-115249: Fix `test_descr` with `-OO` mode (python#115250)

    ae6f000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

testsTests 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.