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 — Tests: remove C API tests using @requires_legacy_unicode_capi()? · Issue #109050 · python/cpython

Tests: remove C API tests using @requires_legacy_unicode_capi()? #109050

New issue
Copy link
New issue
Copy link
Closed
Closed
Tests: remove C API tests using @requires_legacy_unicode_capi()?#109050
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API

Description

@vstinner
vstinner
opened on Sep 7, 2023
Issue body actions

The @test.support.requires_legacy_unicode_capi() decorators uses from _testcapi import unicode_legacy_string, but this module attribute has been remove since Python 3.12 by commit f9c9354, and so all tests using the decorator are now always skipped.

Should we now remove tests using @requires_legacy_unicode_capi() decorator? Or are these tests kept on purpose?

For example, this test is now always skipped:

$ ./python -m test test_capi -m test.test_capi.test_getargs.String_TestCase.test_Z -v

test_Z (test.test_capi.test_getargs.String_TestCase.test_Z) ... skipped 'requires legacy Unicode C API'

See also issue #92536 and PEP 623: Remove wstr from Unicode.

cc @methane @serhiy-storchaka

Linked PRs

  • gh-109050: Remove remaining tests for legacy Unicode C API #109068

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    topic-C-API
    on Sep 7, 2023
  2. serhiy-storchaka
    added a commit that references this issue on Sep 7, 2023

    pythongh-109050: Remove remaining tests for legacy Unicode C API

    6552ba2
  3. serhiy-storchaka commented on Sep 7, 2023

    @serhiy-storchaka
    serhiy-storchaka
    on Sep 7, 2023
    Member
    More actions

    I have examined them all, and they do not contain anything that could be tested. The fact that particular format units are errors is already tested in other tests.

  4. serhiy-storchaka
    added a commit that references this issue on Sep 9, 2023

    gh-109050: Remove remaining tests for legacy Unicode C API (GH-109068)

    b4131a1
  5. vstinner
    closed this as completedon Sep 9, 2023
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

    testsTests in the Lib/test dirTests in the Lib/test dirtopic-C-API

    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.